From 9e004dc28d52a31b318a451680a53325e9d599b7 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 27 Jun 2009 12:31:00 +0000 Subject: [PATCH] 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 --- src/msw/frame.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index e70548d6fb..410bed3864 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -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 */) )