/**
@class wxDocMDIParentFrame
- @wxheader{docmdi.h}
The wxDocMDIParentFrame class provides a default top-level frame for
applications using the document/view framework. This class can only be used
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = "frame");
+ const wxString& name = wxFrameNameStr);
//@}
/**
Destructor.
*/
- ~wxDocMDIParentFrame();
+ virtual ~wxDocMDIParentFrame();
/**
Creates the window.
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = "frame");
+ const wxString& name = wxFrameNameStr);
/**
Deletes all views and documents. If no user input cancelled the
/**
@class wxDocMDIChildFrame
- @wxheader{docmdi.h}
The wxDocMDIChildFrame class provides a default frame for displaying
documents on separate windows. This class can only be used for MDI child
Constructor.
*/
wxDocMDIChildFrame(wxDocument* doc, wxView* view,
- wxFrame* parent, wxWindowID id,
+ wxMDIParentFrame* parent, wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
- const wxString& name = "frame");
+ const wxString& name = wxFrameNameStr);
/**
Destructor.
*/
- ~wxDocMDIChildFrame();
+ virtual ~wxDocMDIChildFrame();
/**
Returns the document associated with this frame.
to override (but still call) this function in order to set the keyboard
focus for your subwindow.
*/
- void OnActivate(wxActivateEvent event);
+ void OnActivate(wxActivateEvent& event);
/**
Closes and deletes the current view and document.