<< Return to Main Index

< Return to Class Index

CGXGridCore::CalcRectFromRowCol

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.

Return Value

Returns the window-area for the given range of cells.

Remarks

Computes the window-area for the given range of cells.

Example

This example simply invalidates the window-area for the given cell as implemented in RedrawRowCol.

CRect rect = CalcRectFromRowCol(nStartRow, nStartCol, nEndRow, nEndCol);
InvalidateRect(rect);

CGXGridCore

Class Overview | Class Members