wxdocchildframethe 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 wxwidgets, and cooperates with the wxview, wxdocument, wxdocmanager and wxdoctemplate classes. see the example application in samples/docview. derived from
wxframe include files <wx/docview.h> see also document/view overview, wxframe
wxdocchildframe::m_childdocument
wxdocchildframe::m_childdocumentwxdocument* m_childdocument the document associated with the frame.
wxdocchildframe::m_childviewwxview* m_childview the view associated with the frame.
wxdocchildframe::wxdocchildframewxdocchildframe(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.
wxdocchildframe::~wxdocchildframe~wxdocchildframe() destructor.
wxdocchildframe::getdocumentwxdocument* getdocument() const returns the document associated with this frame.
wxdocchildframe::getviewwxview* getview() const returns the view associated with this frame.
wxdocchildframe::onactivatevoid 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.
wxdocchildframe::onclosewindowvoid onclosewindow(wxcloseevent& event) closes and deletes the current view and document.
wxdocchildframe::setdocumentvoid setdocument(wxdocument *doc) sets the document for this frame.
wxdocchildframe::setviewvoid setview(wxview *view) sets the view for this frame.
|