From: Julian Smart Date: Sat, 27 Jun 2009 12:31:12 +0000 (+0000) Subject: Fix for toolbar commands not working X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f81140485a5b93df6570413b8d129904ad479a1b Fix for toolbar commands not working git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 33b6df22bb..f81b58b4f2 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -893,6 +893,12 @@ bool wxFrame::HandleSize(int WXUNUSED(x), int WXUNUSED(y), WXUINT id) bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control) { #if wxUSE_MENUS + +#if defined(WINCE_WITHOUT_COMMANDBAR) + if (GetToolBar() && GetToolBar()->FindById(id)) + return GetToolBar()->MSWCommand(cmd, id); +#endif + // we only need to handle the menu and accelerator commands from the items // of our menu bar, base wxWindow class already handles the rest if ( !control && (cmd == 0 /* menu */ || cmd == 1 /* accel */) )