-wxDocMDIParentFrame::wxDocMDIParentFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title,
- const wxPoint& pos, const wxSize& size, long style, const wxString& name):
- wxMDIParentFrame(frame, id, title, pos, size, style, name)
-{
- m_docManager = manager;
-}
-
-void wxDocMDIParentFrame::OnExit(wxCommandEvent& WXUNUSED(event))
-{
- Close();
-}
-
-void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event)
-{
- wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1));
- if (f != wxT(""))
- (void)m_docManager->CreateDocument(f, wxDOC_SILENT);
-}
-
-// Extend event processing to search the view's event table
-bool wxDocMDIParentFrame::ProcessEvent(wxEvent& event)
-{
- // Try the document manager, then do default processing
- if (!m_docManager || !m_docManager->ProcessEvent(event))
- return wxEvtHandler::ProcessEvent(event);
- else
- return TRUE;
-}
-
-void wxDocMDIParentFrame::OnCloseWindow(wxCloseEvent& event)