Search code examples
c++mfcclistctrl

CMFCListCtrl SetFont


When setting the font in CMFCListCtrl is it possible to only set the font in the column/row items itself? I would like the headerctrl to keep the default font. By setting the font for the control it sets the font for both the list and header.


Solution

  • You need to override CMFCListCtrl::OnGetCellFont() to do that.