don't include statbox.h from the header, move wxStaticBoxSizer dtor to .cpp file instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-05-29 09:58:53 +00:00
parent ab1ce969df
commit 649cfca1ce
2 changed files with 7 additions and 2 deletions

View File

@ -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();

View File

@ -1715,6 +1715,11 @@ wxStaticBoxSizer::wxStaticBoxSizer(int orient, wxWindow *win, const wxString& s)
m_staticBox->SetContainingSizer(this);
}
wxStaticBoxSizer::~wxStaticBoxSizer()
{
delete m_staticBox;
}
static void GetStaticBoxBorders( wxStaticBox *box,
int *borderTop,
int *borderOther)