X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60f946829302c4ae39fed60a0143a003ae3dd800..5807e60c2ab2b74109fd1149252783fefa16522b:/contrib/src/foldbar/foldpanelbar.cpp diff --git a/contrib/src/foldbar/foldpanelbar.cpp b/contrib/src/foldbar/foldpanelbar.cpp index a8710b3d5a..17ce202366 100644 --- a/contrib/src/foldbar/foldpanelbar.cpp +++ b/contrib/src/foldbar/foldpanelbar.cpp @@ -30,7 +30,7 @@ // wxFoldPanelBar //---------------------------------------------------------------------------- -IMPLEMENT_CLASS( wxFoldPanelBar, wxPanel ) +IMPLEMENT_DYNAMIC_CLASS( wxFoldPanelBar, wxPanel ) BEGIN_EVENT_TABLE(wxFoldPanelBar,wxPanel) EVT_SIZE(wxFoldPanelBar::OnSizePanel) @@ -39,13 +39,18 @@ BEGIN_EVENT_TABLE(wxFoldPanelBar,wxPanel) END_EVENT_TABLE() wxFoldPanelBar::wxFoldPanelBar() + : wxPanel() + , m_foldPanel(NULL) + , m_bottomPanel(NULL) + , m_controlCreated(false) { } wxFoldPanelBar::wxFoldPanelBar( wxWindow *parent, wxWindowID id, const wxPoint &position, const wxSize& size, long style, long extraStyle) - : m_foldPanel(NULL) + : wxPanel() + , m_foldPanel(NULL) , m_bottomPanel(NULL) , m_controlCreated(false) { @@ -352,7 +357,7 @@ int wxFoldPanelBar::GetPanelsLength(int &collapsed, int &expanded) int value = 0; // assumed here that all the panels that are expanded - // are positioned after eachother from 0,0 to end. + // are positioned after each other from 0,0 to end. for(size_t j = 0; j < m_panels.GetCount(); j++) {