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