Fix for toolbar commands not working
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -893,6 +893,12 @@ bool wxFrame::HandleSize(int WXUNUSED(x), int WXUNUSED(y), WXUINT id)
|
|||||||
bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||||
{
|
{
|
||||||
#if wxUSE_MENUS
|
#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
|
// we only need to handle the menu and accelerator commands from the items
|
||||||
// of our menu bar, base wxWindow class already handles the rest
|
// of our menu bar, base wxWindow class already handles the rest
|
||||||
if ( !control && (cmd == 0 /* menu */ || cmd == 1 /* accel */) )
|
if ( !control && (cmd == 0 /* menu */ || cmd == 1 /* accel */) )
|
||||||
|
|||||||
Reference in New Issue
Block a user