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 wxWindows,
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
}
22 \helpref{Document/view overview
}{docviewoverview
},
\helpref{wxMDIChildFrame
}{wxmdichildframe
}
24 \membersection{wxDocMDIChildFrame::m
\_childDocument}
26 \member{wxDocument*
}{m
\_childDocument}
28 The
document associated with the frame.
30 \membersection{wxDocMDIChildFrame::m
\_childView}
32 \member{wxView*
}{m
\_childView}
34 The view associated with the frame.
36 \membersection{wxDocMDIChildFrame::wxDocMDIChildFrame
}
38 \func{}{wxDocMDIChildFrame
}{\param{wxDocument*
}{doc
},
\param{wxView*
}{view
},
\param{wxFrame*
}{parent
},
39 \param{wxWindowID
}{ id
},
\param{const wxString\&
}{title
},
\param{const wxPoint\&
}{ pos = wxDefaultPosition
},
40 \param{const wxSize\&
}{ size = wxDefaultSize
},
41 \param{long
}{ style = wxDEFAULT
\_FRAME\_STYLE},
\param{const wxString\&
}{name = ``frame"
}}
45 \membersection{wxDocMDIChildFrame::
\destruct{wxDocMDIChildFrame
}}
47 \func{}{\destruct{wxDocMDIChildFrame
}}{\void}
51 \membersection{wxDocMDIChildFrame::GetDocument
}
53 \constfunc{wxDocument*
}{GetDocument
}{\void}
55 Returns the
document associated with this frame.
57 \membersection{wxDocMDIChildFrame::GetView
}
59 \constfunc{wxView*
}{GetView
}{\void}
61 Returns the view associated with this frame.
63 \membersection{wxDocMDIChildFrame::OnActivate
}
65 \func{void
}{OnActivate
}{\param{wxActivateEvent
}{ event
}}
67 Sets the currently active view to be the frame's view. You may need
68 to override (but still call) this function in order to set the keyboard
69 focus for your subwindow.
71 \membersection{wxDocMDIChildFrame::OnCloseWindow
}
73 \func{void
}{OnCloseWindow
}{\param{wxCloseEvent\&
}{ event
}}
75 Closes and deletes the current view and
document.
77 \membersection{wxDocMDIChildFrame::SetDocument
}
79 \func{void
}{SetDocument
}{\param{wxDocument *
}{doc
}}
81 Sets the
document for this frame.
83 \membersection{wxDocMDIChildFrame::SetView
}
85 \func{void
}{SetView
}{\param{wxView *
}{view
}}
87 Sets the view for this frame.