1
/////////////////////////////////////////////////////////////////////////////
3
// Purpose: Document/view demo
4
// Author: Julian Smart
7
// RCS-ID: $Id: docview.h,v 1.7 2005/06/02 12:04:03 JS Exp $
8
// Copyright: (c) Julian Smart
9
// Licence: wxWindows license
10
/////////////////////////////////////////////////////////////////////////////
13
// #pragma interface "docview.h"
16
#ifndef __DOCVIEWSAMPLEH__
17
#define __DOCVIEWSAMPLEH__
20
#include "wx/docview.h"
21
#include "wx/docmdi.h"
25
// Define a new application
26
class MyApp: public wxApp
33
wxMDIChildFrame *CreateChildFrame(wxDocument *doc, wxView *view, bool isCanvas);
36
wxDocManager* m_docManager;
43
class MyFrame: public wxDocMDIParentFrame
45
DECLARE_CLASS(MyFrame)
49
MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size,
52
void OnAbout(wxCommandEvent& event);
53
MyCanvas *CreateCanvas(wxView *view, wxMDIChildFrame *parent);
58
extern MyFrame *GetMainFrame(void);
61
#define DOCVIEW_ABOUT wxID_ABOUT
63
extern bool singleWindowMode;