X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c67202dee33f95fa48b176dec8994340c70eaa2..9018abe3ef28d237b0421c8d96987907adbe5532:/include/wx/msw/menu.h?ds=sidebyside diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 6ca343d1af..33c6701ca6 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -83,6 +83,12 @@ public: // Find wxMenuItem by ID, and item's menu too if itemMenu is !NULL. wxMenuItem *FindItemForId(int itemId, wxMenu **itemMenu = NULL) const; + // Updates the UI for a menu and all submenus recursively. + // source is the object that has the update event handlers + // defined for it. If NULL, the menu or associated window + // will be used. + void UpdateUI(wxEvtHandler* source = (wxEvtHandler*) NULL); + void ProcessCommand(wxCommandEvent& event); inline void Callback(const wxFunction func) { m_callback = func; } @@ -137,6 +143,7 @@ class WXDLLEXPORT wxMenuBar: public wxEvtHandler public: wxMenuBar(); + wxMenuBar( long style ); wxMenuBar(int n, wxMenu *menus[], const wxString titles[]); ~wxMenuBar();