void wxMDIParentFrame::RemoveWindowMenu() { if ( m_windowMenu ) { MDIRemoveWindowMenu(GetClientWindow(), m_hMenu); m_windowMenu->Detach(); } }
wxMDIChildFrame::~wxMDIChildFrame() { // if we hadn't been created, there is nothing to destroy if ( !m_hWnd ) return; GetMDIParent()->RemoveMDIChild(this); // will be destroyed by DestroyChildren() but reset them before calling it // to avoid using dangling pointers if a callback comes in the meanwhile #if wxUSE_TOOLBAR m_frameToolBar = NULL; #endif #if wxUSE_STATUSBAR m_frameStatusBar = NULL; #endif // wxUSE_STATUSBAR DestroyChildren(); MDIRemoveWindowMenu(NULL, m_hMenu); MSWDestroyWindow(); }
void wxMDIChildFrame::DetachMenuBar() { MDIRemoveWindowMenu(NULL, m_hMenu); wxFrame::DetachMenuBar(); }
void wxMDIParentFrame::RemoveWindowMenu() { if ( m_windowMenu ) MDIRemoveWindowMenu(GetClientWindow(), m_hMenu); }