Version: 2.9.4
Public Member Functions
wxDocParentFrame Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/docview.h>

Inheritance diagram for wxDocParentFrame:

Detailed Description

The wxDocParentFrame class provides a default top-level frame for applications using the document/view framework.

This class can only be used for SDI (not MDI) parent frames.

It cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate classes.

Notice that this class processes wxEVT_CLOSE_WINDOW event and tries to close all open views from its handler. If all the views can be closed, i.e. if none of them contains unsaved changes or the user decides to not save them, the window is destroyed. Don't intercept this event in your code unless you want to replace this logic.

Library:  wxCore
Category:  Document/View Framework
参照:
Document/View Framework, Document/View Sample, wxFrame

Public Member Functions

 wxDocParentFrame ()
 Default constructor.
 wxDocParentFrame (wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
 Constructor.
virtual ~wxDocParentFrame ()
 Destructor.
bool Create (wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=541072960, const wxString &name=wxFrameNameStr)
 Used in two-step construction.
wxDocManagerGetDocumentManager () const
 Returns the associated document manager object.

List of all members.


Constructor & Destructor Documentation

wxDocParentFrame::wxDocParentFrame ( )

Default constructor.

wxDocParentFrame::wxDocParentFrame ( wxDocManager manager,
wxFrame parent,
wxWindowID  id,
const wxString title,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxDEFAULT_FRAME_STYLE,
const wxString name = wxFrameNameStr 
)

Constructor.

virtual wxDocParentFrame::~wxDocParentFrame ( ) [virtual]

Destructor.


Member Function Documentation

bool wxDocParentFrame::Create ( wxDocManager manager,
wxFrame parent,
wxWindowID  id,
const wxString title,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = 541072960,
const wxString name = wxFrameNameStr 
)

Used in two-step construction.

wxDocManager* wxDocParentFrame::GetDocumentManager ( ) const

Returns the associated document manager object.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines