diff --git a/include/wx/cocoa/frame.h b/include/wx/cocoa/frame.h index 1e82ab5fbc..5190e59c41 100644 --- a/include/wx/cocoa/frame.h +++ b/include/wx/cocoa/frame.h @@ -86,12 +86,14 @@ public: wxStatusLineNameStr); // sets the main status bar void SetStatusBar(wxStatusBar *statBar); +#if wxUSE_TOOLBAR // create main toolbar bycalling OnCreateToolBar() virtual wxToolBar* CreateToolBar(long style = -1, wxWindowID winid = -1, const wxString& name = wxToolBarNameStr); // sets the main tool bar virtual void SetToolBar(wxToolBar *toolbar); +#endif //wxUSE_TOOLBAR protected: void PositionStatusBar(); };