.\" This is a wxWidgets manpage page generated from the XML docs .TH wxDocMDIParentFrame 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxDocMDIParentFrame \- .SH DESCRIPTION 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 . .SH "PARENTS" wxMDIParentFrame wxFrame wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/docmdi.h .SH MEMBERS .SS wxDocMDIParentFrame (wxDocManager* managerwxFrame *parentwxWindowID idconst wxString& titleconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = wxDEFAULT_FRAME_STYLEconst wxString& name = "frame") Constructor. .SS ~wxDocMDIParentFrame () Destructor. .SS void OnCloseWindow (wxCloseEvent& event) 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(); } .SH "SEE ALSO" wxMDIParentFrame wxFrame wxWindow wxEvtHandler wxObject Document/view overview wxMDIParentFrame .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.