X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef0e92205a01c7d0ca6f381cc690cb5d4fa595c9..ece97e28829228d84d6af87ec58b8ea71e9e9637:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index fe718971b7..3816a57b3e 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -87,10 +87,19 @@ public: // and exists mainly in order to be overridden in the MDI parent frame // which also looks at its active child menu bar virtual const wxMenuItem *FindItemInMenuBar(int menuId) const; -#endif // wxUSE_MENUS - // process menu command: returns true if processed + // generate menu command corresponding to the given menu item + // + // returns true if processed + bool ProcessCommand(wxMenuItem *item); + + // generate menu command corresponding to the given menu command id + // + // returns true if processed bool ProcessCommand(int winid); +#else + bool ProcessCommand(int WXUNUSED(winid)) { return false; } +#endif // wxUSE_MENUS // status bar functions // --------------------