is no corresponding child window.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5498
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( win )
return win->MSWCommand(cmd, id);
if ( win )
return win->MSWCommand(cmd, id);
+ else
+ {
+ // If no child window, it may be an accelerator, e.g. for
+ // a popup menu command.
+
+ wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED);
+ event.SetEventObject(this);
+ event.SetId(id);
+ event.SetInt(id);
+ return ProcessEvent(event);
+ }