git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			93 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
			
		
		
	
	
			93 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
| \section{\class{wxDocChildFrame}}\label{wxdocchildframe}
 | |
| 
 | |
| 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.
 | |
| 
 | |
| The class is part of the document/view framework supported by wxWindows,
 | |
| and cooperates with the \helpref{wxView}{wxview}, \helpref{wxDocument}{wxdocument},
 | |
| \rtfsp\helpref{wxDocManager}{wxdocmanager} and \helpref{wxDocTemplate}{wxdoctemplate} classes.
 | |
| 
 | |
| See the example application in {\tt samples/docview}.
 | |
| 
 | |
| \wxheading{Derived from}
 | |
| 
 | |
| \helpref{wxFrame}{wxframe}\\
 | |
| \helpref{wxWindow}{wxwindow}\\
 | |
| \helpref{wxEvtHandler}{wxevthandler}\\
 | |
| \helpref{wxObject}{wxobject}
 | |
| 
 | |
| \wxheading{Include files}
 | |
| 
 | |
| <wx/docview.h>
 | |
| 
 | |
| \wxheading{See also}
 | |
| 
 | |
| \helpref{Document/view overview}{docviewoverview}, \helpref{wxFrame}{wxframe}
 | |
| 
 | |
| \membersection{wxDocChildFrame::m\_childDocument}
 | |
| 
 | |
| \member{wxDocument*}{m\_childDocument}
 | |
| 
 | |
| The document associated with the frame.
 | |
| 
 | |
| \membersection{wxDocChildFrame::m\_childView}
 | |
| 
 | |
| \member{wxView*}{m\_childView}
 | |
| 
 | |
| The view associated with the frame.
 | |
| 
 | |
| \membersection{wxDocChildFrame::wxDocChildFrame}
 | |
| 
 | |
| \func{}{wxDocChildFrame}{\param{wxDocument* }{doc}, \param{wxView* }{view}, \param{wxFrame* }{parent},
 | |
|  \param{wxWindowID}{ id}, \param{const wxString\& }{title}, \param{const wxPoint\&}{ pos = wxDefaultPosition},
 | |
|  \param{const wxSize\&}{ size = wxDefaultSize},
 | |
|  \param{long}{ style = wxDEFAULT\_FRAME\_STYLE}, \param{const wxString\& }{name = ``frame"}}
 | |
| 
 | |
| Constructor.
 | |
| 
 | |
| \membersection{wxDocChildFrame::\destruct{wxDocChildFrame}}
 | |
| 
 | |
| \func{}{\destruct{wxDocChildFrame}}{\void}
 | |
| 
 | |
| Destructor.
 | |
| 
 | |
| \membersection{wxDocChildFrame::GetDocument}
 | |
| 
 | |
| \constfunc{wxDocument*}{GetDocument}{\void}
 | |
| 
 | |
| Returns the document associated with this frame.
 | |
| 
 | |
| \membersection{wxDocChildFrame::GetView}
 | |
| 
 | |
| \constfunc{wxView*}{GetView}{\void}
 | |
| 
 | |
| Returns the view associated with this frame.
 | |
| 
 | |
| \membersection{wxDocChildFrame::OnActivate}
 | |
| 
 | |
| \func{void}{OnActivate}{\param{wxActivateEvent}{ event}}
 | |
| 
 | |
| 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.
 | |
| 
 | |
| \membersection{wxDocChildFrame::OnCloseWindow}
 | |
| 
 | |
| \func{void}{OnCloseWindow}{\param{wxCloseEvent\&}{ event}}
 | |
| 
 | |
| Closes and deletes the current view and document.
 | |
| 
 | |
| \membersection{wxDocChildFrame::SetDocument}
 | |
| 
 | |
| \func{void}{SetDocument}{\param{wxDocument *}{doc}}
 | |
| 
 | |
| Sets the document for this frame.
 | |
| 
 | |
| \membersection{wxDocChildFrame::SetView}
 | |
| 
 | |
| \func{void}{SetView}{\param{wxView *}{view}}
 | |
| 
 | |
| Sets the view for this frame.
 | |
| 
 | |
| 
 |