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 » theme switcher menu w/o toolbar? Collapse All
Subject Author Date
Norman Tellinot Jun 11, 2007 - 1:29 PM

Is it possible to have a theme switcher menu entry without creating the theme switcher control bar? I guess I can just create the control bar and hide it or something?

Technical Support Jun 12, 2007 - 5:22 AM

The list of theme switcher commands is completely handled by the CExtThemeSwitcherToolControlBar toolbar window. So you should create it in any case and then hide it. Besides you should also set its m_bAppearInDockSiteControlBarPopupMenu property to false so that the user cannot show the toolbar again by clicking UI Theme Switcher in Prof-UIS build-in menus.

To add the theme switcher menu, simply insert a menu command item that has identifier 29999. The menu will appear automatically. You should also modify the PreTranslateMessage() virtual method of the main frame or dialog window in the following way:

BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) 
	if( m_wndToolBarUiLook.PreTranslateMessage( pMsg ) )
		return TRUE;
	. . .