From f81140485a5b93df6570413b8d129904ad479a1b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 27 Jun 2009 12:31:12 +0000 Subject: [PATCH] Fix for toolbar commands not working git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/frame.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 */) ) -- 2.49.0