Fix for toolbar commands not working

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-06-27 12:31:00 +00:00
parent 50076362d2
commit 9e004dc28d

View File

@@ -958,6 +958,11 @@ bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
return win->MSWCommand(cmd, id);
}
#if defined(WINCE_WITHOUT_COMMANDBAR)
if (GetToolBar() && GetToolBar()->FindById(id))
return GetToolBar()->MSWCommand(cmd, id);
#endif
// handle here commands from menus and accelerators for our menu bar items,
// all the rest is handled by wxWindow itself
if ( !control && (cmd == 0 /* menu */ || cmd == 1 /* accel */) )