]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/docchfrm.tex
typo (patch 1528925)
[wxWidgets.git] / docs / latex / wx / docchfrm.tex
CommitLineData
a660d684
KB
1\section{\class{wxDocChildFrame}}\label{wxdocchildframe}
2
3The wxDocChildFrame class provides a default frame for displaying documents
4on separate windows. This class can only be used for SDI (not MDI) child frames.
5
fc2171bd 6The class is part of the document/view framework supported by wxWidgets,
a660d684
KB
7and cooperates with the \helpref{wxView}{wxview}, \helpref{wxDocument}{wxdocument},
8\rtfsp\helpref{wxDocManager}{wxdocmanager} and \helpref{wxDocTemplate}{wxdoctemplate} classes.
9
10See the example application in {\tt samples/docview}.
11
12\wxheading{Derived from}
13
14\helpref{wxFrame}{wxframe}\\
15\helpref{wxWindow}{wxwindow}\\
16\helpref{wxEvtHandler}{wxevthandler}\\
17\helpref{wxObject}{wxobject}
18
954b8ae6
JS
19\wxheading{Include files}
20
21<wx/docview.h>
22
a660d684
KB
23\wxheading{See also}
24
25\helpref{Document/view overview}{docviewoverview}, \helpref{wxFrame}{wxframe}
26
b236c10f 27\membersection{wxDocChildFrame::m\_childDocument}\label{wxdocchildframemchilddocument}
a660d684
KB
28
29\member{wxDocument*}{m\_childDocument}
30
31The document associated with the frame.
32
b236c10f 33\membersection{wxDocChildFrame::m\_childView}\label{wxdocchildframemchildview}
a660d684
KB
34
35\member{wxView*}{m\_childView}
36
37The view associated with the frame.
38
b236c10f 39\membersection{wxDocChildFrame::wxDocChildFrame}\label{wxdocchildframector}
a660d684
KB
40
41\func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent},
f7bd2698 42 \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
a660d684
KB
43 \param{const wxSize\&}{ size = wxDefaultSize},
44 \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
45
46Constructor.
47
b236c10f 48\membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}\label{wxdocchildframedtor}
a660d684
KB
49
50\func{}{\destruct{wxDocChildFrame}}{\void}
51
52Destructor.
53
b236c10f 54\membersection{wxDocChildFrame::GetDocument}\label{wxdocchildframegetdocument}
a660d684
KB
55
56\constfunc{wxDocument*}{GetDocument}{\void}
57
58Returns the document associated with this frame.
59
b236c10f 60\membersection{wxDocChildFrame::GetView}\label{wxdocchildframegetview}
a660d684
KB
61
62\constfunc{wxView*}{GetView}{\void}
63
64Returns the view associated with this frame.
65
b236c10f 66\membersection{wxDocChildFrame::OnActivate}\label{wxdocchildframeonactivate}
a660d684 67
82540ef2 68\func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
a660d684
KB
69
70Sets the currently active view to be the frame's view. You may need
71to override (but still call) this function in order to set the keyboard
72focus for your subwindow.
73
b236c10f 74\membersection{wxDocChildFrame::OnCloseWindow}\label{wxdocchildframeonclosewindow}
a660d684 75
82540ef2 76\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
a660d684
KB
77
78Closes and deletes the current view and document.
79
b236c10f 80\membersection{wxDocChildFrame::SetDocument}\label{wxdocchildframesetdocument}
a660d684
KB
81
82\func{void}{SetDocument}{\param{wxDocument *}{doc}}
83
84Sets the document for this frame.
85
b236c10f 86\membersection{wxDocChildFrame::SetView}\label{wxdocchildframesetview}
a660d684
KB
87
88\func{void}{SetView}{\param{wxView *}{view}}
89
90Sets the view for this frame.
91
92