X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18afa2acbefa9b89587a213513f2118958d0c20a..5b36366c59ea68056ba07a3ca1c2cd6022a59735:/include/wx/frame.h?ds=sidebyside diff --git a/include/wx/frame.h b/include/wx/frame.h index 358246aea6..9c8aa12b15 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -122,9 +122,10 @@ public: // toolbar functions // ----------------- + #if wxUSE_TOOLBAR // create main toolbar bycalling OnCreateToolBar() - virtual wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL, + virtual wxToolBar* CreateToolBar(long style = -1, wxWindowID winid = -1, const wxString& name = wxToolBarNameStr); // return a new toolbar @@ -145,8 +146,9 @@ public: void OnMenuHighlight(wxMenuEvent& event); #if wxUSE_MENUS - // send wxUpdateUIEvents for all menu items (called from OnIdle()) - void DoMenuUpdates(); + // send wxUpdateUIEvents for all menu items in the menubar, + // or just for menu if non-NULL + void DoMenuUpdates(wxMenu* menu = NULL); #endif // wxUSE_MENUS // do the UI update processing for this window