X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e39af974ef7846e26686ae39d74e4696c1fef0c3..f794be6afe4e89ebd93ca5d78601e7a7ec44bb9f:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index 646cce0a23..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,9 +146,9 @@ public: void OnMenuHighlight(wxMenuEvent& event); #if wxUSE_MENUS - // send wxUpdateUIEvents for all menu items (called from OnIdle()) - void DoMenuUpdates(); - void DoMenuUpdates(wxMenu* menu, wxWindow* focusWin); + // 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