Share via


CMFCListCtrl::OnGetCellTextColor

The framework calls this method when it must determine the text color of an individual cell.

virtual COLORREF OnGetCellTextColor(
   int nRow,
   int nColumn 
);

Parameters

  • [in] nRow
    The row of the cell in question.

  • [in] nColumn
    The column of the cell in question.

Return Value

A COLOREF value that specifies the text color of the cell.

Remarks

By default, this method calls GetTextColor regardless of input parameters. The whole list control will have the same text color. You can override OnGetCellTextColor in a derived class to mark individual cells with a separate text color.

Requirements

Header: afxlistctrl.h

See Also

Reference

CMFCListCtrl Class

Hierarchy Chart