]>
git.saurik.com Git - wxWidgets.git/blob - samples/resource/resource.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Dialog resource sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
16 // Define a new application
17 class MyApp
: public wxApp
22 virtual bool OnInit();
27 class MyPanel
: public wxPanel
30 MyPanel(wxWindow
*parent
, wxWindowID id
, const wxPoint
& pos
,
31 const wxSize
& size
, int style
, const wxString
&name
);
32 void OnClick(wxMouseEvent
&event
);
38 class MyFrame
: public wxFrame
41 MyFrame(wxWindow
*parent
, const wxWindowID id
, const wxString
& title
,
42 const wxPoint
& pos
, const wxSize
& size
);
43 void OnQuit(wxCommandEvent
& event
);
44 void OnAbout(wxCommandEvent
& event
);
45 void OnTestDialog(wxCommandEvent
& event
);
53 class MyDialog
: public wxDialog
56 void OnOk(wxCommandEvent
& event
);
57 void OnCancel(wxCommandEvent
& event
);
63 // the values should be the same as in menu.wxr file!
66 RESOURCE_TESTDIALOG
= 2,