1998-07-29 02:51:33 -04:00
|
|
|
\section{\class{wxDocMDIChildFrame}}\label{wxdocmdichildframe}
|
|
|
|
|
|
|
|
The wxDocMDIChildFrame class provides a default frame for displaying documents
|
|
|
|
on separate windows. This class can only be used for MDI child frames.
|
|
|
|
|
|
|
|
The class is part of the document/view framework supported by wxWindows,
|
|
|
|
and cooperates with the \helpref{wxView}{wxview}, \helpref{wxDocument}{wxdocument},
|
|
|
|
\rtfsp\helpref{wxDocManager}{wxdocmanager} and \helpref{wxDocTemplate}{wxdoctemplate} classes.
|
|
|
|
|
|
|
|
See the example application in {\tt samples/docview}.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxMDIChildFrame}{wxmdichildframe}\\
|
|
|
|
\helpref{wxFrame}{wxframe}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/docmdi.h>
|
|
|
|
|
1998-07-29 02:51:33 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{Document/view overview}{docviewoverview}, \helpref{wxMDIChildFrame}{wxmdichildframe}
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::m\_childDocument}
|
|
|
|
|
|
|
|
\member{wxDocument*}{m\_childDocument}
|
|
|
|
|
|
|
|
The document associated with the frame.
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::m\_childView}
|
|
|
|
|
|
|
|
\member{wxView*}{m\_childView}
|
|
|
|
|
|
|
|
The view associated with the frame.
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::wxDocMDIChildFrame}
|
|
|
|
|
|
|
|
\func{}{wxDocMDIChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \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{wxDocMDIChildFrame::\destruct{wxDocMDIChildFrame}}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxDocMDIChildFrame}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::GetDocument}
|
|
|
|
|
|
|
|
\constfunc{wxDocument*}{GetDocument}{\void}
|
|
|
|
|
|
|
|
Returns the document associated with this frame.
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::GetView}
|
|
|
|
|
|
|
|
\constfunc{wxView*}{GetView}{\void}
|
|
|
|
|
|
|
|
Returns the view associated with this frame.
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::OnActivate}
|
|
|
|
|
1999-01-29 12:22:47 -05:00
|
|
|
\func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
|
1998-07-29 02:51:33 -04:00
|
|
|
|
|
|
|
Sets the currently active view to be the frame's view. You may need
|
|
|
|
to override (but still call) this function in order to set the keyboard
|
|
|
|
focus for your subwindow.
|
|
|
|
|
1999-01-29 12:22:47 -05:00
|
|
|
\membersection{wxDocMDIChildFrame::OnCloseWindow}
|
1998-07-29 02:51:33 -04:00
|
|
|
|
1999-01-29 12:22:47 -05:00
|
|
|
\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
|
1998-07-29 02:51:33 -04:00
|
|
|
|
|
|
|
Closes and deletes the current view and document.
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::SetDocument}
|
|
|
|
|
|
|
|
\func{void}{SetDocument}{\param{wxDocument *}{doc}}
|
|
|
|
|
|
|
|
Sets the document for this frame.
|
|
|
|
|
|
|
|
\membersection{wxDocMDIChildFrame::SetView}
|
|
|
|
|
|
|
|
\func{void}{SetView}{\param{wxView *}{view}}
|
|
|
|
|
|
|
|
Sets the view for this frame.
|
|
|
|
|
|
|
|
|