X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af8964c4c3770b2d54ee54a9f8275113e944a3d9..6835592c5ce0c3c4bc3a0e1275b1a1592c023280:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index 0667019482..5e5d7aabe5 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -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