X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8ba4cb61a5375fa69a2b7a9daae10b00f34a57f..b3e5d05894c018ea50d92de6249aa09d211e2ef7:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 73d99c2779..62b49e6815 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -678,14 +678,14 @@ private: #if wxUSE_STATBOX -#include "wx/statbox.h" +class WXDLLEXPORT wxStaticBox; 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;