Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Changing header font in CExtListCtrl does not work Collapse All
Subject Author Date
Carsten Pedersen Dec 19, 2010 - 12:05 PM

Hi,

I have a CExtListCtrl (ProfUIS 2.91) and want to change the header font.
I use the following code:

    CExtHeaderCtrl &HdrCtrl = List.GetHeaderCtrl();
    HdrCtrl.SetFont(m_FontHeader);

It still just uses the standard font. A test application with a standard CListCtrl using the above code worked perfectly.

Do I need to do anything more to make it work with ProfUIS?

Thanks

Technical Support Dec 20, 2010 - 10:16 AM

The customized header font is currently not supported. We can regard your message as a feature request. The only way to change the header font is to implement a CExtHeaderCtrl-derived class that implements the CExtHeaderCtrl::OnCalcHeaderItemSize(), CExtHeaderCtrl::OnCalcHeaderItemLayout() and CExtHeaderCtrl::OnPaintHeaderItem() virtual methods. This also requires a CExtListCtrl-derived class with the overriden CExtListCtrl::_OnQueryHeaderCtrl() virtual method which returns your improved header control.