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.
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
|
|
|
Technical Support
|
Oct 1, 2009 - 12:47 PM
|
|
|
Bart Kampers
|
Sep 28, 2009 - 4:32 AM
|
I created the combobox with: WS_VISIBLE | WS_CHILD | WS_TABSTOP | CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS.
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.
|
|