⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 docmdipr.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
\section{\class{wxDocMDIParentFrame}}\label{wxdocmdiparentframe}The wxDocMDIParentFrame class provides a default top-level frame forapplications using the document/view framework. This class can only be used for MDI parent frames.It cooperates with the \helpref{wxView}{wxview}, \helpref{wxDocument}{wxdocument},\rtfsp\helpref{wxDocManager}{wxdocmanager} and \helpref{wxDocTemplates}{wxdoctemplate} classes.See the example application in {\tt samples/docview}.\wxheading{Derived from}\helpref{wxMDIParentFrame}{wxmdiparentframe}\\\helpref{wxFrame}{wxframe}\\\helpref{wxWindow}{wxwindow}\\\helpref{wxEvtHandler}{wxevthandler}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/docmdi.h>\wxheading{See also}\helpref{Document/view overview}{docviewoverview}, \helpref{wxMDIParentFrame}{wxmdiparentframe}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxDocMDIParentFrame::wxDocMDIParentFrame}\label{wxdocmdiparentframector}\func{}{wxDocMDIParentFrame}{\void}\func{}{wxDocMDIParentFrame}{\param{wxDocManager*}{ manager}, \param{wxFrame *}{parent}, \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = "frame"}}Constructor.\membersection{wxDocMDIParentFrame::\destruct{wxDocMDIParentFrame}}\label{wxdocmdiparentframedtor}\func{}{\destruct{wxDocMDIParentFrame}}{\void}Destructor.\membersection{wxDocMDIParentFrame::Create}\label{wxdocmdiparentframecreate}\func{bool}{Create}{\param{wxDocManager*}{ manager}, \param{wxFrame *}{parent}, \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize}, \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = "frame"}}Creates the window.\membersection{wxDocMDIParentFrame::OnCloseWindow}\label{wxdocmdiparentframeonclosewindow}\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}Deletes all views and documents. If no user input cancelled theoperation, 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.\begin{verbatim}void wxDocParentFrame::OnCloseWindow(wxCloseEvent& event){  if (m_docManager->Clear(!event.CanVeto()))  {    this->Destroy();  }  else    event.Veto();}\end{verbatim}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -