]>
Commit | Line | Data |
---|---|---|
a660d684 KB |
1 | \section{\class{wxDocChildFrame}}\label{wxdocchildframe} |
2 | ||
3 | The wxDocChildFrame class provides a default frame for displaying documents | |
4 | on separate windows. This class can only be used for SDI (not MDI) child frames. | |
5 | ||
6 | The class is part of the document/view framework supported by wxWindows, | |
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{wxFrame}{wxframe}\\ | |
15 | \helpref{wxWindow}{wxwindow}\\ | |
16 | \helpref{wxEvtHandler}{wxevthandler}\\ | |
17 | \helpref{wxObject}{wxobject} | |
18 | ||
19 | \wxheading{See also} | |
20 | ||
21 | \helpref{Document/view overview}{docviewoverview}, \helpref{wxFrame}{wxframe} | |
22 | ||
23 | \membersection{wxDocChildFrame::m\_childDocument} | |
24 | ||
25 | \member{wxDocument*}{m\_childDocument} | |
26 | ||
27 | The document associated with the frame. | |
28 | ||
29 | \membersection{wxDocChildFrame::m\_childView} | |
30 | ||
31 | \member{wxView*}{m\_childView} | |
32 | ||
33 | The view associated with the frame. | |
34 | ||
35 | \membersection{wxDocChildFrame::wxDocChildFrame} | |
36 | ||
37 | \func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent}, | |
f7bd2698 | 38 | \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition}, |
a660d684 KB |
39 | \param{const wxSize\&}{ size = wxDefaultSize}, |
40 | \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}} | |
41 | ||
42 | Constructor. | |
43 | ||
44 | \membersection{wxDocChildFrame::\destruct{wxDocChildFrame}} | |
45 | ||
46 | \func{}{\destruct{wxDocChildFrame}}{\void} | |
47 | ||
48 | Destructor. | |
49 | ||
50 | \membersection{wxDocChildFrame::GetDocument} | |
51 | ||
52 | \constfunc{wxDocument*}{GetDocument}{\void} | |
53 | ||
54 | Returns the document associated with this frame. | |
55 | ||
56 | \membersection{wxDocChildFrame::GetView} | |
57 | ||
58 | \constfunc{wxView*}{GetView}{\void} | |
59 | ||
60 | Returns the view associated with this frame. | |
61 | ||
62 | \membersection{wxDocChildFrame::OnActivate} | |
63 | ||
82540ef2 | 64 | \func{void}{OnActivate}{\param{wxActivateEvent}{ event}} |
a660d684 KB |
65 | |
66 | Sets the currently active view to be the frame's view. You may need | |
67 | to override (but still call) this function in order to set the keyboard | |
68 | focus for your subwindow. | |
69 | ||
82540ef2 | 70 | \membersection{wxDocChildFrame::OnCloseWindow} |
a660d684 | 71 | |
82540ef2 | 72 | \func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}} |
a660d684 KB |
73 | |
74 | Closes and deletes the current view and document. | |
75 | ||
76 | \membersection{wxDocChildFrame::SetDocument} | |
77 | ||
78 | \func{void}{SetDocument}{\param{wxDocument *}{doc}} | |
79 | ||
80 | Sets the document for this frame. | |
81 | ||
82 | \membersection{wxDocChildFrame::SetView} | |
83 | ||
84 | \func{void}{SetView}{\param{wxView *}{view}} | |
85 | ||
86 | Sets the view for this frame. | |
87 | ||
88 |