The wxDocMDIParentFrame class provides a default top-level frame for applications using the document/view framework. This class can only be used for MDI parent frames.
It cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplates classes.
See the example application in samples/docview.
Derived from
wxMDIParentFrame
wxFrame
wxWindow
wxEvtHandler
wxObject
Include files
<wx/docmdi.h>
See also
Document/view overview, wxMDIParentFrame
Constructor.
Destructor.
Deletes all views and documents. If no user input cancelled the operation, the frame will be destroyed and the application will exit.
Since understanding how document/view clean-up takes place can be difficult, the implementation of this function is shown below.
void wxDocParentFrame::OnCloseWindow(wxCloseEvent& event) { if (m_docManager->Clear(!event.CanVeto())) { this->Destroy(); } else event.Veto(); }ymasuda 平成17年11月19日