1 \section{\class{wxDocMDIChildFrame
}}\label{wxdocmdichildframe
}
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.
6 The class is part of the
document/view framework supported by wxWidgets,
7 and cooperates with the
\helpref{wxView
}{wxview
},
\helpref{wxDocument
}{wxdocument
},
8 \rtfsp\helpref{wxDocManager
}{wxdocmanager
} and
\helpref{wxDocTemplate
}{wxdoctemplate
} classes.
10 See the example application in
{\tt samples/docview
}.
12 \wxheading{Derived from
}
14 \helpref{wxMDIChildFrame
}{wxmdichildframe
}\\
15 \helpref{wxFrame
}{wxframe
}\\
16 \helpref{wxWindow
}{wxwindow
}\\
17 \helpref{wxEvtHandler
}{wxevthandler
}\\
18 \helpref{wxObject
}{wxobject
}
20 \wxheading{Include files
}
26 \helpref{wxCore
}{librarieslist
}
30 \helpref{Document/view overview
}{docviewoverview
},
\helpref{wxMDIChildFrame
}{wxmdichildframe
}
32 \membersection{wxDocMDIChildFrame::m
\_childDocument}\label{wxdocmdichildframemchilddocument
}
34 \member{wxDocument*
}{m
\_childDocument}
36 The
document associated with the frame.
38 \membersection{wxDocMDIChildFrame::m
\_childView}\label{wxdocmdichildframemchildview
}
40 \member{wxView*
}{m
\_childView}
42 The view associated with the frame.
44 \membersection{wxDocMDIChildFrame::wxDocMDIChildFrame
}\label{wxdocmdichildframector
}
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"
}}
53 \membersection{wxDocMDIChildFrame::
\destruct{wxDocMDIChildFrame
}}\label{wxdocmdichildframedtor
}
55 \func{}{\destruct{wxDocMDIChildFrame
}}{\void}
59 \membersection{wxDocMDIChildFrame::GetDocument
}\label{wxdocmdichildframegetdocument
}
61 \constfunc{wxDocument*
}{GetDocument
}{\void}
63 Returns the
document associated with this frame.
65 \membersection{wxDocMDIChildFrame::GetView
}\label{wxdocmdichildframegetview
}
67 \constfunc{wxView*
}{GetView
}{\void}
69 Returns the view associated with this frame.
71 \membersection{wxDocMDIChildFrame::OnActivate
}\label{wxdocmdichildframeonactivate
}
73 \func{void
}{OnActivate
}{\param{wxActivateEvent
}{ event
}}
75 Sets the currently active view to be the frame's view. You may need
76 to override (but still call) this function in order to set the keyboard
77 focus for your subwindow.
79 \membersection{wxDocMDIChildFrame::OnCloseWindow
}\label{wxdocmdichildframeonclosewindow
}
81 \func{void
}{OnCloseWindow
}{\param{wxCloseEvent\&
}{ event
}}
83 Closes and deletes the current view and
document.
85 \membersection{wxDocMDIChildFrame::SetDocument
}\label{wxdocmdichildframesetdocument
}
87 \func{void
}{SetDocument
}{\param{wxDocument *
}{doc
}}
89 Sets the
document for this frame.
91 \membersection{wxDocMDIChildFrame::SetView
}\label{wxdocmdichildframesetview
}
93 \func{void
}{SetView
}{\param{wxView *
}{view
}}
95 Sets the view for this frame.