Contents Up Previous Next

wxDocMDIChildFrame

The wxDocMDIChildFrame class provides a default frame for displaying documents on separate windows. This class can only be used for MDI child frames.

The class is part of the document/view framework supported by wxWidgets, and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate classes.

See the example application in samples/docview.

Derived from

wxMDIChildFrame
wxFrame
wxWindow
wxEvtHandler
wxObject

Include files

<wx/docmdi.h>

See also

Document/view overview, wxMDIChildFrame

wxDocMDIChildFrame::m_childDocument
wxDocMDIChildFrame::m_childView
wxDocMDIChildFrame::wxDocMDIChildFrame
wxDocMDIChildFrame::~wxDocMDIChildFrame
wxDocMDIChildFrame::GetDocument
wxDocMDIChildFrame::GetView
wxDocMDIChildFrame::OnActivate
wxDocMDIChildFrame::OnCloseWindow
wxDocMDIChildFrame::SetDocument
wxDocMDIChildFrame::SetView


wxDocMDIChildFrame::m_childDocument

wxDocument* m_childDocument

The document associated with the frame.


wxDocMDIChildFrame::m_childView

wxView* m_childView

The view associated with the frame.


wxDocMDIChildFrame::wxDocMDIChildFrame

wxDocMDIChildFrame(wxDocument* doc, wxView* view, wxFrame* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame")

Constructor.


wxDocMDIChildFrame::~wxDocMDIChildFrame

~wxDocMDIChildFrame()

Destructor.


wxDocMDIChildFrame::GetDocument

wxDocument* GetDocument() const

Returns the document associated with this frame.


wxDocMDIChildFrame::GetView

wxView* GetView() const

Returns the view associated with this frame.


wxDocMDIChildFrame::OnActivate

void OnActivate(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.


wxDocMDIChildFrame::OnCloseWindow

void OnCloseWindow(wxCloseEvent& event)

Closes and deletes the current view and document.


wxDocMDIChildFrame::SetDocument

void SetDocument(wxDocument *doc)

Sets the document for this frame.


wxDocMDIChildFrame::SetView

void SetView(wxView *view)

Sets the view for this frame.