1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
<HTML>
<head><title>wxDocChildFrame</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxdocchildframe"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx72.htm#wxdirdialog"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx74.htm#wxdocmanager"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxDocChildFrame</H2>
<P>
The wxDocChildFrame class provides a default frame for displaying documents
on separate windows. This class can only be used for SDI (not MDI) child frames.<P>
The class is part of the document/view framework supported by wxWindows,
and cooperates with the <A HREF="wx258.htm#wxview">wxView</A>, <A HREF="wx79.htm#wxdocument">wxDocument</A>,
<A HREF="wx74.htm#wxdocmanager">wxDocManager</A> and <A HREF="wx78.htm#wxdoctemplate">wxDocTemplate</A> classes.<P>
See the example application in <TT>samples/docview</TT>.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx104.htm#wxframe">wxFrame</A><BR>
<A HREF="wx260.htm#wxwindow">wxWindow</A><BR>
<A HREF="wx85.htm#wxevthandler">wxEvtHandler</A><BR>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/docview.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx298.htm#docviewoverview">Document/view overview</A>, <A HREF="wx104.htm#wxframe">wxFrame</A><P>
<A HREF="#topic203">wxDocChildFrame::m_childDocument</A><BR>
<A HREF="#topic204">wxDocChildFrame::m_childView</A><BR>
<A HREF="#topic205">wxDocChildFrame::wxDocChildFrame</A><BR>
<A HREF="#topic206">wxDocChildFrame::~wxDocChildFrame</A><BR>
<A HREF="#topic207">wxDocChildFrame::GetDocument</A><BR>
<A HREF="#topic208">wxDocChildFrame::GetView</A><BR>
<A HREF="#topic209">wxDocChildFrame::OnActivate</A><BR>
<A HREF="#topic210">wxDocChildFrame::OnCloseWindow</A><BR>
<A HREF="#topic211">wxDocChildFrame::SetDocument</A><BR>
<A HREF="#topic212">wxDocChildFrame::SetView</A><BR>
<P>
<HR>
<A NAME="topic203"></A>
<H3>wxDocChildFrame::m_childDocument</H3>
<P>
wxDocument* m_childDocument<P>
The document associated with the frame.<P>
<HR>
<A NAME="topic204"></A>
<H3>wxDocChildFrame::m_childView</H3>
<P>
wxView* m_childView<P>
The view associated with the frame.<P>
<HR>
<A NAME="topic205"></A>
<H3>wxDocChildFrame::wxDocChildFrame</H3>
<P>
<B></B> <B>wxDocChildFrame</B>(<B>wxDocument* </B><I>doc</I>, <B>wxView* </B><I>view</I>, <B>wxFrame* </B><I>parent</I>,
<B>wxWindowID</B><I> id</I>, <B>const wxString& </B><I>title</I>, <B>const wxPoint&</B><I> pos = wxDefaultPosition</I>,
<B>const wxSize&</B><I> size = wxDefaultSize</I>,
<B>long</B><I> style = wxDEFAULT_FRAME_STYLE</I>, <B>const wxString& </B><I>name = "frame"</I>)<P>
Constructor.<P>
<HR>
<A NAME="topic206"></A>
<H3>wxDocChildFrame::~wxDocChildFrame</H3>
<P>
<B></B> <B>~wxDocChildFrame</B>()<P>
Destructor.<P>
<HR>
<A NAME="topic207"></A>
<H3>wxDocChildFrame::GetDocument</H3>
<P>
<B>wxDocument*</B> <B>GetDocument</B>() <B>const</B><P>
Returns the document associated with this frame.<P>
<HR>
<A NAME="topic208"></A>
<H3>wxDocChildFrame::GetView</H3>
<P>
<B>wxView*</B> <B>GetView</B>() <B>const</B><P>
Returns the view associated with this frame.<P>
<HR>
<A NAME="topic209"></A>
<H3>wxDocChildFrame::OnActivate</H3>
<P>
<B>void</B> <B>OnActivate</B>(<B>wxActivateEvent</B><I> event</I>)<P>
Sets the currently active view to be the frame's view. You may need
to override (but still call) this function in order to set the keyboard
focus for your subwindow.<P>
<HR>
<A NAME="topic210"></A>
<H3>wxDocChildFrame::OnCloseWindow</H3>
<P>
<B>void</B> <B>OnCloseWindow</B>(<B>wxCloseEvent&</B><I> event</I>)<P>
Closes and deletes the current view and document.<P>
<HR>
<A NAME="topic211"></A>
<H3>wxDocChildFrame::SetDocument</H3>
<P>
<B>void</B> <B>SetDocument</B>(<B>wxDocument *</B><I>doc</I>)<P>
Sets the document for this frame.<P>
<HR>
<A NAME="topic212"></A>
<H3>wxDocChildFrame::SetView</H3>
<P>
<B>void</B> <B>SetView</B>(<B>wxView *</B><I>view</I>)<P>
Sets the view for this frame.<P>
</BODY></HTML>
|