CODViewport::DrawGrid

void CODViewport::DrawGrid(CDC* pDC, const CRect & rcUpdate)

Draws the grid.

Defined in: OdViewport.cpp

Return Value

void

Parameters

pDC

The device context to draw in.

rcUpdate

Rectangular area to update.

Comments

The X and Y grid is spacing values are stored as CODMeasure objects. The grid measurements are converted to logical units for the purpose of drawing the grid. The GetMinGridPelSpacing and GetMinGridPelSpacing virtual functions are used to validate the grid spacing. The grid is not drawn if the grid spacing does not fall into the valid range.