]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/canvas/simple/simple.h
1 /////////////////////////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////////////////////////
12 #pragma interface "simple.cpp"
15 // Include wxWindows' headers
21 #include "wx/canvas/canvas.h"
23 //----------------------------------------------------------------------------
25 //----------------------------------------------------------------------------
29 // WDR: class declarations
31 //----------------------------------------------------------------------------
33 //----------------------------------------------------------------------------
35 class MyFrame
: public wxFrame
38 // constructors and destructors
39 MyFrame( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxDEFAULT_FRAME_STYLE
);
45 // WDR: method declarations for MyFrame
46 void CreateMyMenuBar();
49 // WDR: member variable declarations for MyFrame
50 wxCanvasImage
*m_smile1
;
51 wxCanvasImage
*m_smile2
;
52 wxCanvasAdmin
*m_admin
;
55 // WDR: handler declarations for MyFrame
56 void OnQuit( wxCommandEvent
&event
);
57 void OnCloseWindow( wxCloseEvent
&event
);
63 //----------------------------------------------------------------------------
65 //----------------------------------------------------------------------------
67 class MyApp
: public wxApp
72 virtual bool OnInit();