The wxDocChildFrame class provides a default frame for displaying documents on separate windows.
The class is part of the document/view framework supported by wxWindows, and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate classes.
See the example application in samples/docview.
wxDocChildFrame::childDocument
wxDocChildFrame::childView
wxDocChildFrame::wxDocChildFrame
wxDocChildFrame::~wxDocChildFrame
wxDocChildFrame::GetDocument
wxDocChildFrame::GetView
wxDocChildFrame::OnActivate
wxDocChildFrame::OnClose
wxDocChildFrame::OnMenuCommand
wxDocChildFrame::SetDocument
wxDocChildFrame::SetView
wxDocument * childDocument
The document associated with the frame.
wxView * childView
The view associated with the frame.
void wxDocChildFrame(wxDocument *doc, wxView *view, wxFrame *parent, char *title, int x, int y, int width, int height, long style, char *name)
Constructor.
void ~wxDocChildFrame(void)
Destructor.
wxDocument * GetDocument(void)
Returns the document associated with this frame.
wxView * GetView(void)
Returns the view associated with this frame.
void OnActivate(Bool active)
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.
Bool OnClose(void)
Closes and deletes the current view and document.
void OnMenuCommand(int cmd)
Passes menu commands to the parent frame (assumed to be a wxDocParentFrame).
void SetDocument(wxDocument *doc)
Sets the document for this frame.
void SetView(wxView *view)
Sets the view for this frame.