void wxGenericMDIParentFrame::OnWindowMenu(wxCommandEvent &event) { switch ( event.GetId() ) { case wxWINDOWCLOSE: if ( m_currentChild ) m_currentChild->Close(); break; case wxWINDOWCLOSEALL: CloseAll(); break; case wxWINDOWNEXT: ActivateNext(); break; case wxWINDOWPREV: ActivatePrevious(); break; default: event.Skip(); } }
void wxAuiMDIParentFrame::DoHandleMenu(wxCommandEvent& event) { switch (event.GetId()) { case wxWINDOWCLOSE: if (m_pActiveChild) m_pActiveChild->Close(); break; case wxWINDOWCLOSEALL: while (m_pActiveChild) { if (!m_pActiveChild->Close()) { return; // failure } } break; case wxWINDOWNEXT: ActivateNext(); break; case wxWINDOWPREV: ActivatePrevious(); break; default: event.Skip(); } }
//--------------------------------------------------------- void CSAGA_Frame::On_Frame_Previous(wxCommandEvent &WXUNUSED(event)) { ActivatePrevious(); }