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 |
|
Svetlozar Kostadinov
|
Mar 29, 2007 - 11:51 AM
|
Hi! In the .RC-file of each sample there is a menuitem defined as follows:
MENUITEM "<<< Prof-UIS Themes List >>>", 29999
It seems that Prof-UIS adds the themes list internally somehow. I have added this menuitem to my menu, but the sub menus are not created automatically as it is in the samples. What is that I forget?
|
|
Svetlozar Kostadinov
|
Mar 30, 2007 - 11:59 AM
|
|
|
Suhai Gyorgy
|
Mar 30, 2007 - 2:04 AM
|
You need to create and init a CExtThemeSwitcherToolControlBar member variable in your MainFrame class, and have the lines if( m_wndToolBarUiLook.PreTranslateMessage( pMsg ) ) return TRUE;
at the very beginning of CMainFrame::PreTranslateMessage method (as in those samples you mentioned). This CExtThemeSwitcherToolControlBar::PreTranslateMessage has the code for replacing menuitem having identifier 29999 with the themes list. If you don’t want the user to see the m_wndToolBarUiLook toolbar, you can call ShowControlBar(&m_wndToolBarUiLook, false, false);. The toolbar may still appear in built-in ProfUIS context menus, you can fix that following this FAQ.
|
|