]> git.saurik.com Git - wxWidgets.git/blob - samples/resource/resource.h
Rmoved more wxprop files
[wxWidgets.git] / samples / resource / resource.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: resource.h
3 // Purpose: Dialog resource sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 // #pragma interface
14 #endif
15
16 // Define a new application
17 class MyApp: public wxApp
18 {
19 public:
20 MyApp(void) ;
21 bool OnInit(void);
22 };
23
24 class MyPanel: public wxPanel
25 {
26 public:
27 MyPanel( wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
28 int style, const wxString &name );
29 void OnClick(wxMouseEvent &event);
30
31 DECLARE_EVENT_TABLE()
32 };
33
34 class MyFrame: public wxFrame
35 {
36 public:
37 wxWindow *panel;
38 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size);
39 bool OnClose(void);
40 void OnQuit(wxCommandEvent& event);
41 void OnTest1(wxCommandEvent& event);
42
43 DECLARE_EVENT_TABLE()
44 };
45
46 class MyDialog : public wxDialog
47 {
48 public:
49 void OnOk(wxCommandEvent& event);
50 void OnCancel(wxCommandEvent& event);
51
52 DECLARE_EVENT_TABLE()
53 };
54
55 #define RESOURCE_QUIT 4
56 #define RESOURCE_TEST1 2
57
58 #define RESOURCE_OK 1
59 #define RESOURCE_CANCEL 2