]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/docmdich.tex
sorting support for generic version (patch 1765087 from Bo)
[wxWidgets.git] / docs / latex / wx / docmdich.tex
CommitLineData
f7bd2698
JS
1\section{\class{wxDocMDIChildFrame}}\label{wxdocmdichildframe}
2
3The wxDocMDIChildFrame class provides a default frame for displaying documents
4on separate windows. This class can only be used for MDI child frames.
5
fc2171bd 6The class is part of the document/view framework supported by wxWidgets,
f7bd2698
JS
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{wxMDIChildFrame}{wxmdichildframe}\\
15\helpref{wxFrame}{wxframe}\\
16\helpref{wxWindow}{wxwindow}\\
17\helpref{wxEvtHandler}{wxevthandler}\\
18\helpref{wxObject}{wxobject}
19
954b8ae6
JS
20\wxheading{Include files}
21
22<wx/docmdi.h>
23
a7af285d
VZ
24\wxheading{Library}
25
26\helpref{wxCore}{librarieslist}
27
f7bd2698
JS
28\wxheading{See also}
29
30\helpref{Document/view overview}{docviewoverview}, \helpref{wxMDIChildFrame}{wxmdichildframe}
31
b236c10f 32\membersection{wxDocMDIChildFrame::m\_childDocument}\label{wxdocmdichildframemchilddocument}
f7bd2698
JS
33
34\member{wxDocument*}{m\_childDocument}
35
36The document associated with the frame.
37
b236c10f 38\membersection{wxDocMDIChildFrame::m\_childView}\label{wxdocmdichildframemchildview}
f7bd2698
JS
39
40\member{wxView*}{m\_childView}
41
42The view associated with the frame.
43
b236c10f 44\membersection{wxDocMDIChildFrame::wxDocMDIChildFrame}\label{wxdocmdichildframector}
f7bd2698
JS
45
46\func{}{wxDocMDIChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent},
47 \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
48 \param{const wxSize\&}{ size = wxDefaultSize},
49 \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
50
51Constructor.
52
b236c10f 53\membersection{wxDocMDIChildFrame::\destruct{wxDocMDIChildFrame}}\label{wxdocmdichildframedtor}
f7bd2698
JS
54
55\func{}{\destruct{wxDocMDIChildFrame}}{\void}
56
57Destructor.
58
b236c10f 59\membersection{wxDocMDIChildFrame::GetDocument}\label{wxdocmdichildframegetdocument}
f7bd2698
JS
60
61\constfunc{wxDocument*}{GetDocument}{\void}
62
63Returns the document associated with this frame.
64
b236c10f 65\membersection{wxDocMDIChildFrame::GetView}\label{wxdocmdichildframegetview}
f7bd2698
JS
66
67\constfunc{wxView*}{GetView}{\void}
68
69Returns the view associated with this frame.
70
b236c10f 71\membersection{wxDocMDIChildFrame::OnActivate}\label{wxdocmdichildframeonactivate}
f7bd2698 72
82540ef2 73\func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
f7bd2698
JS
74
75Sets the currently active view to be the frame's view. You may need
76to override (but still call) this function in order to set the keyboard
77focus for your subwindow.
78
b236c10f 79\membersection{wxDocMDIChildFrame::OnCloseWindow}\label{wxdocmdichildframeonclosewindow}
f7bd2698 80
82540ef2 81\func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
f7bd2698
JS
82
83Closes and deletes the current view and document.
84
b236c10f 85\membersection{wxDocMDIChildFrame::SetDocument}\label{wxdocmdichildframesetdocument}
f7bd2698
JS
86
87\func{void}{SetDocument}{\param{wxDocument *}{doc}}
88
89Sets the document for this frame.
90
b236c10f 91\membersection{wxDocMDIChildFrame::SetView}\label{wxdocmdichildframesetview}
f7bd2698
JS
92
93\func{void}{SetView}{\param{wxView *}{view}}
94
95Sets the view for this frame.
96
97