X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9746a2ba50fdfa914e0476cb31710f9ccb5cc3cc..c5191fbd2b543de54aede153c2c6f8dee29119d1:/samples/docvwmdi/docview.h diff --git a/samples/docvwmdi/docview.h b/samples/docvwmdi/docview.h index 9f9b695300..96eaeb90b8 100644 --- a/samples/docvwmdi/docview.h +++ b/samples/docvwmdi/docview.h @@ -5,8 +5,8 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -16,6 +16,8 @@ #ifndef __DOCVIEWSAMPLEH__ #define __DOCVIEWSAMPLEH__ +#include "wx/mdi.h" +#include "wx/docview.h" #include "wx/docmdi.h" class wxDocManager; @@ -45,10 +47,10 @@ class MyFrame: public wxDocMDIParentFrame wxMenu *editMenu; MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size, - const long type); + long type); void OnAbout(wxCommandEvent& event); - MyCanvas *CreateCanvas(wxView *view, wxFrame *parent); + MyCanvas *CreateCanvas(wxView *view, wxMDIChildFrame *parent); DECLARE_EVENT_TABLE() }; @@ -56,7 +58,7 @@ DECLARE_EVENT_TABLE() extern MyFrame *GetMainFrame(void); #define DOCVIEW_CUT 1 -#define DOCVIEW_ABOUT 2 +#define DOCVIEW_ABOUT wxID_ABOUT extern bool singleWindowMode;