X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18afa2acbefa9b89587a213513f2118958d0c20a..6757b5e31cb48dd909754fdd5ceb5947585b76e1:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index 358246aea6..593f4141c6 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "framebase.h" #endif @@ -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