CExtGridWnd::OnGridCellQueryTextColor

Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Called to get the text color of the cell. The default implementation returns COLORREF(-1) which means that the default text color (depending on whether the cell is selected) should be used.

virtualCOLORREF OnGridCellQueryTextColor(
   const CExtGridCell & _cell,
   const CDC & dc,
   LONG nVisibleColNo,
   LONG nVisibleRowNo,
   LONG nColNo,
   LONG nRowNo,
   INT nColType,
   INT nRowType,
   DWORD dwAreaFlags,
   DWORD dwHelperPaintFlags
) const;

Parameters

_cell
Reference to the cell object.
dc
Device context on which cell is being painted.
nVisibleColNo
Column index relative to the first visible column on the left.
nVisibleRowNo
Row index relative to the first visible row at the top.
nColNo
Column index.
nRowNo
Row index.
nColType
Type of the column (0 - inner column, -1 - outer column on left, 1 - outer column on right).
nRowType
Type of the row (0 - inner row, -1 - outer row at top, 1 - outer row at bottom).
dwAreaFlags
Specifies the type of the rectangular area; this parameter is a set of __EGBWA_* values of the hit-test object.
dwHelperPaintFlags
Specifies a set of the __EGCPF_* flags that provide the painting algorithm with additional information on hovering, highlighting and drag-and-drop.

See Also

CExtGridWnd Overview | Class Members | Hierarchy Chart