X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3103e8a97e834e9793f0eb149aa82a99fd64ef9a..5be7e07a3f432da34b98b90d16b4bd913ef8fd9c:/contrib/src/foldbar/foldpanelbar.cpp diff --git a/contrib/src/foldbar/foldpanelbar.cpp b/contrib/src/foldbar/foldpanelbar.cpp index c4870c8827..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) {