git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24977
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
DestroyChildren();
// already delete by DestroyChildren()
+#if wxUSE_TOOLBAR
m_frameToolBar = NULL;
+#endif
+#if wxUSE_STATUSBAR
m_frameStatusBar = NULL;
+#endif
m_clientWindow = NULL ;
if (m_windowMenu)
mdiparent->m_currentChild = NULL;
DestroyChildren();
// already delete by DestroyChildren()
+#if wxUSE_TOOLBAR
m_frameToolBar = NULL;
+#endif
+#if wxUSE_STATUSBAR
m_frameStatusBar = NULL;
+#endif
}
void wxMDIChildFrame::SetMenuBar(wxMenuBar *menu_bar)
{
DestroyChildren();
// already delete by DestroyChildren()
+#if wxUSE_TOOLBAR
m_frameToolBar = NULL;
+#endif
+#if wxUSE_STATUSBAR
m_frameStatusBar = NULL;
+#endif
m_clientWindow = NULL ;
if (m_windowMenu)
mdiparent->m_currentChild = NULL;
DestroyChildren();
// already delete by DestroyChildren()
+#if wxUSE_TOOLBAR
m_frameToolBar = NULL;
+#endif
+#if wxUSE_STATUSBAR
m_frameStatusBar = NULL;
+#endif
}
void wxMDIChildFrame::SetMenuBar(wxMenuBar *menu_bar)