CGXGridCore::OnDrawTopLeftBottomRight
void OnDrawTopLeftBottomRight(ROWCOL topRow, ROWCOL leftCol, ROWCOL bottomRow, ROWCOL rightCol, CDC* pDC);?
topRow
Specifies the first client row.
leftCol
Specifies the first client column.
bottomRow
Specifies the last client row.
rightCol
Specifies the last client column.
pDC
A pointer to the device context.
Remarks
Overridable method which draws the specified range of cells.
OnDrawTopLeftBottomRight is called for both screen and printer output. topRow, leftCol, bottomRow and rightCol specify the range of cells to be printed in relative coordinates.
OnDrawTopLeftBottomRight executes the followings steps:
-
Compute grid (an array with column positions and row positions in pixels).
-
Draw each cell with OnDrawItem.
-
Draw the grid lines.
-
Draw all covered cells with OnDrawItem.
-
Draw the borders of the cells.
-
Invert selected cells.
- Highlight the frame of the current cell.