Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » problems with the theme switcher Collapse All
Subject Author Date
Nathan Explosions Jun 25, 2007 - 12:14 AM

Greetings again.

I am experiencing the following problem with the theme switcher’s control bar: after pressing a theme button the selection is not reset for the previously chosen items.

Also, when the mouse pointer passes over any theme button, I get the following debug message: "Warning: no message line prompt for ID 0xFFEB.". The IDs vary.

The CExtThemeSwitcherToolControlBar control is initialized the same way as shown in samples. Please tell me, how can I fix this problem?

Thank you for attention.

Nathan Explosions Jun 25, 2007 - 6:08 AM

Thank you for quick reply.

I am afraid though, that this is not the case - this is the code i use (m_wndToolBarUILook is an instance of CExtThemeSwitcherToolControlBar):

BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
{
    if(m_wndToolBarUILook.PreTranslateMessage(pMsg)) return TRUE;
    if(m_wndMenuBar.TranslateMainFrameMessage(pMsg)) return TRUE;
    return CExtNCW<CMDIFrameWnd>::PreTranslateMessage(pMsg);
}

Technical Support Jun 26, 2007 - 3:38 AM

If the toolbar buttons behave as you described, the command updating mechanism is not working correctly. A similar problem often occurs in MFC regular DLL projects where the MFC host does not control the message loop and cannot perform tooltip event translations nor the idle time processing which is used by the command updating mechanism. Please provide us with more details about your project or send it to us.



Technical Support Jun 25, 2007 - 6:02 AM

We guess you forgot to route invocations of PreTranslateMessage() for your theme switcher toolbar.