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 » Change font's color [including CExtMenuControlBar, CCustomExtToolControlBar, CExtStatusControlBar] Collapse All
Subject Author Date
karhong karhong Dec 10, 2008 - 12:31 AM

How do i change all the fonts color of CExtMenuControlBar, CCustomExtToolControlBar, CExtStatusControlBar ??

My program already successfully implement prof-uis

I wanted to change the fonts of it... but i cant get the solution.

I already implement

CColorizedThemeOffice2003 *m_pPaintManager;

This will change my theme color. Since my theme is dark in color, i cant see clearly the menu item text as well as status bar

Any help would be appreciated.




karhong karhong Dec 10, 2008 - 3:11 AM

I already able to change the fonts of it...


if(g_PaintManager->m_FontNormal.GetSafeHandle() != NULL)



g_PaintManager->m_FontNormal.CreateFont(15, 5, 5, 5,



DEFAULT_PITCH | FF_ROMAN, _T("Times New Roman"));


but i dont know how to change to font’s color yet



Technical Support Dec 10, 2008 - 2:05 PM

You should use your paint manager class which implements the CExtPaintManager::InitTranslatedColors() virtual method. This method initializes map of color indices to color values. Your method should invoke parent class method and the re-install required colors. Please note, different paint manager classes may use different colors for painting text of particular UI parts. Besides the same color index often used for painting text of more than one UI part.

karhong karhong Dec 11, 2008 - 6:42 PM

Thanks for your reply..

I don’t know which member variable should I use to change the font’s color. I only can get the variable to change the theme color which uses *pclrFillHint

Can you tell me which member variable should I overwrite its color so that the font’s color will be change?

Thank you for your replied

karhong karhong Dec 14, 2008 - 7:39 PM

Dear technical Support,

I fount

m_mapColorTranslate[CLR_MENUTEXT_OUT]            = InstallColor( RGB(139,137,137) );

but then i try to overwrite it.. and I run it, the font’s color still did not change. Any idea?




karhong karhong Dec 15, 2008 - 6:00 PM

I’ll use 2007 theme to do my color changing.

As i try to use m_mapColorTranslate, i only able to change the font’s color of the submenu item..

As for the fonts on menu item(on the menu bar) i still cant find any method to change the color of it.

As well as for the status bar’s font color, i also cant find any method to change the color..

Any help would be appreciated