X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af8964c4c3770b2d54ee54a9f8275113e944a3d9..7af284fda7500594b2ab86c8ba60138164ab4d04:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index 0667019482..32a666b364 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -58,8 +58,8 @@ class WXDLLEXPORT wxFrameBase : public wxWindow public: // construction wxFrameBase(); -#ifdef __WXMAC_X__ - virtual ~wxFrameBase() {} // Added min for Mac X +#ifdef __DARWIN__ + virtual ~wxFrameBase() { } #endif wxFrame *New(wxWindow *parent, @@ -105,7 +105,7 @@ public: // ------------------ #if wxUSE_MENUS - virtual void SetMenuBar(wxMenuBar *menubar) = 0; + virtual void SetMenuBar(wxMenuBar *menubar); virtual wxMenuBar *GetMenuBar() const { return m_frameMenuBar; } #endif // wxUSE_MENUS @@ -200,6 +200,14 @@ protected: // override to update menu bar position when the frame size changes virtual void PositionMenuBar() { } + // override to do something special when the menu bar is being removed + // from the frame + virtual void DetachMenuBar(); + + // override to do something special when the menu bar is attached to the + // frame + virtual void AttachMenuBar(wxMenuBar *menubar); + wxMenuBar *m_frameMenuBar; #endif // wxUSE_MENUS