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 Tech Support » Menubar updates view when not docked Collapse All
Subject Author Date
Stephan Finkler Mar 23, 2005 - 4:02 AM

Hi,

there is different behavior of the menubar if it is docked or not.

Take your MDIDOCVIEW sample an uncomment in OnCreate()

m_wndMenuBar.EnableDocking( CBRS_ALIGN_ANY );

and

DockControlBar( &m_wndMenuBar );

Now click on the "Window" popup menu (so that the popdown menu is over the view)
move the mouse to the "Help" popup menu

--> the OnDraw in the view is called
(who is calling UpdateWindow??)

When the menubar is enabled for docking there is no OnDraw call.

Is this your intention??? How can I prevent the update call????

Thanks for your help

PS: I’m using Prof-UIS v2.27

Technical Support Mar 23, 2005 - 7:15 AM

We confirm that the view window is updated as you described in your message. When the pop-up menu window is destroyed it calls CExtPopupMenuWnd::PassMsgLoop() in the CExtPopupMenuSite::_Done() method. This causes the view to be updated. The pop-up menu does not invalidate the view window. This is done by Windows. Besides, the window class of pop-up menu has the CS_SAVEBITS flag set on. So, in fact, the view should not repainted at all. We will try to clarify this situation, but the main obstacle is we are unable to detect when view or frame windows are invalidated.