Professional UI Solutions
Site Map   /  Register


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 General Discussion » Font in combo box Collapse All
Subject Author Date
Bart Kampers Sep 25, 2009 - 2:51 AM

How can I cutomize the font in a CExtComboBox? I tried to override OnQueryFont but this method is never reached. 

Technical Support Sep 29, 2009 - 1:21 PM

It looks like you are using some very old Prof-UIS version, correct?

Bart Kampers Sep 30, 2009 - 12:50 AM

I use Prof-UIS 2.85.

Technical Support Oct 1, 2009 - 12:47 PM

We are sorry, we checked the filtering popup list box instead of built-in items list box. The filtering list box really uses the custom font but built-in items list box is not. We fixed this issue.
Here is the updated combo box source code:
Here is the test project:

Bart Kampers Sep 28, 2009 - 4:32 AM


Now OnQueryFont still is not reached and my application crashes when I click on the combobox.

Technical Support Sep 25, 2009 - 2:03 PM

You should use the owner draw combo box. The measuring and painting is already implemented in the CExtComboBoxBase class and the OnQueryFont() virtual method is used for both measuring and painting items.