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:
@@ -901,7 +901,7 @@ bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||
if ( !wxCurrentPopupMenu )
|
||||
#endif // wxUSE_MENUS_NATIVE
|
||||
{
|
||||
wxMenuItem * const mitem = MSWFindMenuBarItem(id);
|
||||
wxMenuItem * const mitem = FindItemInMenuBar((signed short)id);
|
||||
if ( mitem )
|
||||
return ProcessCommand(mitem);
|
||||
}
|
||||
@@ -913,12 +913,6 @@ bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||
|
||||
#if wxUSE_MENUS
|
||||
|
||||
wxMenuItem *wxFrame::MSWFindMenuBarItem(WXWORD id)
|
||||
{
|
||||
wxMenuBar * const mbar = GetMenuBar();
|
||||
return mbar ? mbar->FindItem((signed short)id) : NULL;
|
||||
}
|
||||
|
||||
bool wxFrame::HandleMenuSelect(WXWORD nItem, WXWORD flags, WXHMENU hMenu)
|
||||
{
|
||||
int item;
|
||||
|
||||
Reference in New Issue
Block a user