remove the recently added MSWFindMenuBarItem() as we already had FindItemInMenuBar() for the same purpose; just change the latter to return a non-const pointer; this fixes help string display in the status bar for the window menu items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -406,14 +406,17 @@ void wxMDIParentFrame::DoMenuUpdates(wxMenu* menu)
|
||||
}
|
||||
}
|
||||
|
||||
const wxMenuItem *wxMDIParentFrame::FindItemInMenuBar(int menuId) const
|
||||
wxMenuItem *wxMDIParentFrame::FindItemInMenuBar(int menuId) const
|
||||
{
|
||||
const wxMenuItem *item = wxFrame::FindItemInMenuBar(menuId);
|
||||
wxMenuItem *item = wxFrame::FindItemInMenuBar(menuId);
|
||||
if ( !item && GetActiveChild() )
|
||||
{
|
||||
item = GetActiveChild()->FindItemInMenuBar(menuId);
|
||||
}
|
||||
|
||||
if ( !item && m_windowMenu )
|
||||
item = m_windowMenu->FindItem(menuId);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -683,15 +686,6 @@ void wxMDIParentFrame::OnMDICommand(wxCommandEvent& event)
|
||||
::SendMessage(GetWinHwnd(GetClientWindow()), msg, wParam, lParam);
|
||||
}
|
||||
|
||||
wxMenuItem *wxMDIParentFrame::MSWFindMenuBarItem(WXWORD id)
|
||||
{
|
||||
wxMenuItem *mitem = wxFrame::MSWFindMenuBarItem(id);
|
||||
if ( !mitem && m_windowMenu )
|
||||
mitem = m_windowMenu->FindItem((signed short)id);
|
||||
|
||||
return mitem;
|
||||
}
|
||||
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
bool wxMDIParentFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND hwnd)
|
||||
|
Reference in New Issue
Block a user