Partager via


CMFCListCtrl::OnGetCellFont

The framework calls this method when it obtains the font for an individual cell.

virtual HFONT OnGetCellFont(
   int nRow,
   int nColumn,
   DWORD dwData = 0 
);

Parameters

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

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

  • [in] dwData
    User-defined data. The default implementation does not use this parameter.

Return Value

A handle to the font that is used for the current cell.

Remarks

By default, this method returns NULL. All of the cells in a list control have the same font. Override this method in order to provide different fonts for different cells.

Requirements

Header: afxlistctrl.h

See Also

Reference

CMFCListCtrl Class

Hierarchy Chart