]>
git.saurik.com Git - wxWidgets.git/blob - samples/docvwmdi/docview.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Document/view demo
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/docview.h"
17 #include "wx/docmdi.h"
21 // Define a new application
22 class MyApp
: public wxApp
26 virtual bool OnInit();
29 wxMDIChildFrame
* CreateChildFrame(wxDocument
*, wxView
*, bool isCanvas
);
32 wxDocManager
* m_docManager
;
40 class MyFrame
: public wxDocMDIParentFrame
45 MyFrame(wxDocManager
*, wxFrame
*, const wxString
& title
, const wxPoint
&, const wxSize
&, long type
);
47 MyCanvas
* CreateCanvas(DrawingView
*, wxMDIChildFrame
*);
50 void OnAbout(wxCommandEvent
&);
53 DECLARE_CLASS(MyFrame
)
56 extern MyFrame
* GetMainFrame();
59 #define DOCVIEW_ABOUT wxID_ABOUT
61 extern bool singleWindowMode
;