Contents Up Previous Next

wxDocChildFrame: wxFrame

Document/view overview

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


wxDocChildFrame::childDocument

wxDocument * childDocument

The document associated with the frame.


wxDocChildFrame::childView

wxView * childView

The view associated with the frame.


wxDocChildFrame::wxDocChildFrame

void wxDocChildFrame(wxDocument *doc, wxView *view, wxFrame *parent, char *title, int x, int y, int width, int height, long style, char *name)

Constructor.


wxDocChildFrame::~wxDocChildFrame

void ~wxDocChildFrame(void)

Destructor.


wxDocChildFrame::GetDocument

wxDocument * GetDocument(void)

Returns the document associated with this frame.


wxDocChildFrame::GetView

wxView * GetView(void)

Returns the view associated with this frame.


wxDocChildFrame::OnActivate

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.


wxDocChildFrame::OnClose

Bool OnClose(void)

Closes and deletes the current view and document.


wxDocChildFrame::OnMenuCommand

void OnMenuCommand(int cmd)

Passes menu commands to the parent frame (assumed to be a wxDocParentFrame).


wxDocChildFrame::SetDocument

void SetDocument(wxDocument *doc)

Sets the document for this frame.


wxDocChildFrame::SetView

void SetView(wxView *view)

Sets the view for this frame.