1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxDocChildFrame}}\label{wxdocchildframe}
|
|
|
|
|
|
|
|
The wxDocChildFrame class provides a default frame for displaying documents
|
|
|
|
on separate windows. This class can only be used for SDI (not MDI) child frames.
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
The class is part of the document/view framework supported by wxWidgets,
|
1998-05-20 10:25:30 -04:00
|
|
|
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{wxFrame}{wxframe}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/docview.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{Document/view overview}{docviewoverview}, \helpref{wxFrame}{wxframe}
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::m\_childDocument}\label{wxdocchildframemchilddocument}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\member{wxDocument*}{m\_childDocument}
|
|
|
|
|
|
|
|
The document associated with the frame.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::m\_childView}\label{wxdocchildframemchildview}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\member{wxView*}{m\_childView}
|
|
|
|
|
|
|
|
The view associated with the frame.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::wxDocChildFrame}\label{wxdocchildframector}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent},
|
1998-07-29 02:51:33 -04:00
|
|
|
\param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
|
1998-05-20 10:25:30 -04:00
|
|
|
\param{const wxSize\&}{ size = wxDefaultSize},
|
|
|
|
\param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}\label{wxdocchildframedtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{\destruct{wxDocChildFrame}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::GetDocument}\label{wxdocchildframegetdocument}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\constfunc{wxDocument*}{GetDocument}{\void}
|
|
|
|
|
|
|
|
Returns the document associated with this frame.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::GetView}\label{wxdocchildframegetview}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\constfunc{wxView*}{GetView}{\void}
|
|
|
|
|
|
|
|
Returns the view associated with this frame.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::OnActivate}\label{wxdocchildframeonactivate}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-29 12:22:47 -05:00
|
|
|
\func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
|
1998-05-20 10:25:30 -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.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::OnCloseWindow}\label{wxdocchildframeonclosewindow}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-29 12:22:47 -05:00
|
|
|
\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
Closes and deletes the current view and document.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::SetDocument}\label{wxdocchildframesetdocument}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetDocument}{\param{wxDocument *}{doc}}
|
|
|
|
|
|
|
|
Sets the document for this frame.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDocChildFrame::SetView}\label{wxdocchildframesetview}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetView}{\param{wxView *}{view}}
|
|
|
|
|
|
|
|
Sets the view for this frame.
|
|
|
|
|
|
|
|
|