delete the associated wxStaticBox in wxStaticBoxSizer dtor (patch 1473769)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-28 17:24:12 +00:00
parent 6a1b3ead3f
commit e978011a40
4 changed files with 29 additions and 4 deletions

View File

@@ -685,6 +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; }
void RecalcSizes();
wxSize CalcMin();
@@ -694,6 +695,7 @@ public:
// override to hide/show the static box as well
virtual void ShowItems (bool show);
virtual bool Detach( wxWindow *window );
protected:
wxStaticBox *m_staticBox;