]> git.saurik.com Git - wxWidgets.git/blob - samples/nativdlg/nativdlg.h
Added some makefiles
[wxWidgets.git] / samples / nativdlg / nativdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: nativdlg.h
3 // Purpose: Native Windows dialog 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 MyFrame: public wxFrame
25 {
26 public:
27 wxWindow *panel;
28 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size);
29 bool OnClose(void);
30 void OnQuit(wxCommandEvent& event);
31 void OnTest1(wxCommandEvent& event);
32
33 DECLARE_EVENT_TABLE()
34 };
35
36 class MyDialog : public wxDialog
37 {
38 public:
39 void OnOk(wxCommandEvent& event);
40 void OnCancel(wxCommandEvent& event);
41
42 DECLARE_EVENT_TABLE()
43 };
44
45 #define RESOURCE_QUIT 4
46 #define RESOURCE_TEST1 2
47