CGXControl::GetCellRect
virtual CRect GetCellRect(ROWCOL nRow, ROWCOL nCol, LPRECT rectItem = NULL, const CGXStyle* pStyle = NULL);
nRow
Specifies the row id.
nCol
Specifies the column id.
rectItem
Points to a RECT structure with the cell coordinates. If rectItem is NULL, the rectangle will be computed internally with CalcRectFromRowColEx.
pStyle
Points to a composed style object for the cell. If pStyle is NULL, a style object will be determined internally with LookupStyleRowCol.
Return Value
Returns the interior rectangle for the cell (e.g., the rectangle for the text in a combo box without the area needed for the pushbutton).
Remarks
This method is called to determine the interior rectangle usable for drawing text.
The base-class version of this method only subtracts the area needed for borders and 3d-effects. You should override this method to adapt the rectangle further to the needs of your control (e.g., subtracting areas needed for children and subtracting a frame to the left and right for a better look, like CGXStatic::GetCellRect does).
See Also
CGXGridCore::CalcRectFromRowColEx CGXGridCore::LookupStyleRowCol CGXGridCore::SubtractBorders