Menu bar bug |
Post Reply |
Author | |
rwfearnley
Groupie Joined: 21 January 2004 Location: United Kingdom Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 21 January 2004 at 9:38am |
XTreme Toolkit 4.1 bug: If you run your MDI application (e.g. GUI_VisualStudio demo) and, before opening the Window menu, the application receives a WM_SETTINGCHANGE message (e.g. change the Regional Option in the control panel) the CXTMenuBar control looses its handle to the Window menu. If you then open the Window menu it fails to add the MDI child window list to the pop up menu. This is caused by a bug in CXTMenuBar::OnSettingChange (XTMenuBar.cpp) the line: LoadMenu(m_hMenu, m_hMenuDefault); should read: LoadMenu(m_hMenu, m_hMenuShared); When the original line is executed the member variable m_hMenuShared gets set to m_hMenuDefault. Then when CXTMenuBar::OnInitWindowMenu is executed when the Window menu is selected it updates the wrong menu, so the Window menu is not updated. In our case we switch menus when views are changed and we also send WM_SETTINGCHANGE internally when various settings are changed. This means the problem happens more frequently. To reproduce: Edited by rwfearnley |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |