Change background color of CMFCListCtrl header?

112 Views Asked by At

For a CMFCListCtrl in a CPropertyPage, I want to change the background color of the header. There is a protected method of the header control CMFCHeaderCtrl::OnFillBackground (virtual void OnFillBackground(CDC* pDC);).

Can I use the OnFillBackground function to change the background color without creating any new classes or using custom draw?

MFC, C++, Visual Studio 2022 (17.6.5), Windows 11

0

There are 0 best solutions below