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 » CExtComboBox font problem Collapse All
Subject Author Date
Timo Stripf Apr 16, 2008 - 11:37 AM

When i create a toolbar with combobox and set the font to m_Combobox.SetFont( &g_PaintManager->m_FontNormal ); then i have the right font, but when i hide and show the main window or change the size then i have the default font. Any ideas why?



Timo Stripf Apr 21, 2008 - 11:29 AM

Can it happens, if the resolution changed?

Technical Support Apr 22, 2008 - 8:50 AM

Yes, it can.

Technical Support Apr 17, 2008 - 6:35 AM

When setting a font, you should add handlers for such system events as WM_SETTINGCHANGE and WM_DISPLAYCHANGE (maybe WM_THEMECHANGED and WM_SYSCOLORCHANGE) and reset the font in these handlers. But in your case it seems the problem hides somewhere else. Would you try to reproduce this problem using one of our samples and send its modified code to us?

Also please try to set the font using the following code: