CRect CalcRectFromRowCol(ROWCOL nStartRow, ROWCOL nStartCol, ROWCOL nEndRow, ROWCOL nEndCol , BOOL bOutsideClientArea = FALSE);
CRect CalcRectFromRowCol(ROWCOL nRow, ROWCOL nCol);
nStartRow
Specifies the top row.
nStartCol
Specifies the left column.
nEndRow
Specifies the bottom row.
nEndCol
Specifies the right column.
nRow
Specifies the row.
nCol
Specifies the column.
bOutsideClientArea
Set this TRUE if the calculation of the right and bottom values should not stop when it goes beyond the visible grid area.
Returns the window-area for the given range of cells.
Computes the window-area for the given range of cells.
This example simply invalidates the window-area for the given cell as implemented in RedrawRowCol.
CRect rect = CalcRectFromRowCol(nStartRow, nStartCol, nEndRow, nEndCol);
InvalidateRect(rect);
Class Overview | Class Members