X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e978011a4053f11bf253dc758dc482a991b84628..84c3e788d6200d68384852e4c4785c09922ec499:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index fcb3a86898..62b49e6815 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -685,7 +685,7 @@ class WXDLLEXPORT wxStaticBoxSizer: public wxBoxSizer public: wxStaticBoxSizer(wxStaticBox *box, int orient); wxStaticBoxSizer(int orient, wxWindow *win, const wxString& label = wxEmptyString); - virtual ~wxStaticBoxSizer() { delete m_staticBox; } + virtual ~wxStaticBoxSizer(); void RecalcSizes(); wxSize CalcMin(); @@ -695,7 +695,10 @@ public: // override to hide/show the static box as well virtual void ShowItems (bool show); + virtual bool Detach( wxWindow *window ); + virtual bool Detach( wxSizer *sizer ) { return wxBoxSizer::Detach(sizer); } + virtual bool Detach( int index ) { return wxBoxSizer::Detach(index); } protected: wxStaticBox *m_staticBox;