]>
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 and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 // #pragma interface "docview.h"
16 #ifndef __DOCVIEWSAMPLEH__
17 #define __DOCVIEWSAMPLEH__
19 #include "wx/docmdi.h"
23 // Define a new application
24 class MyApp
: public wxApp
31 wxMDIChildFrame
*CreateChildFrame(wxDocument
*doc
, wxView
*view
, bool isCanvas
);
34 wxDocManager
* m_docManager
;
41 class MyFrame
: public wxDocMDIParentFrame
43 DECLARE_CLASS(MyFrame
)
47 MyFrame(wxDocManager
*manager
, wxFrame
*frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
50 void OnAbout(wxCommandEvent
& event
);
51 MyCanvas
*CreateCanvas(wxView
*view
, wxFrame
*parent
);
56 extern MyFrame
*GetMainFrame(void);
59 #define DOCVIEW_ABOUT 2
61 extern bool singleWindowMode
;