]>
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 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __DOCVIEWSAMPLEH__
13 #define __DOCVIEWSAMPLEH__
16 #include "wx/docview.h"
17 #include "wx/docmdi.h"
21 // Define a new application
22 class MyApp
: public wxApp
29 wxMDIChildFrame
*CreateChildFrame(wxDocument
*doc
, wxView
*view
, bool isCanvas
);
32 wxDocManager
* m_docManager
;
39 class MyFrame
: public wxDocMDIParentFrame
41 DECLARE_CLASS(MyFrame
)
45 MyFrame(wxDocManager
*manager
, wxFrame
*frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
48 void OnAbout(wxCommandEvent
& event
);
49 MyCanvas
*CreateCanvas(wxView
*view
, wxMDIChildFrame
*parent
);
54 extern MyFrame
*GetMainFrame(void);
57 #define DOCVIEW_ABOUT wxID_ABOUT
59 extern bool singleWindowMode
;