]>
Commit | Line | Data |
---|---|---|
bbf1f0e5 KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: nativdlg.h | |
3 | // Purpose: Native Windows dialog sample | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 04/01/98 | |
6aa89a22 | 7 | // Copyright: (c) Julian Smart |
526954c5 | 8 | // Licence: wxWindows licence |
bbf1f0e5 KB |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
bbf1f0e5 KB |
11 | // Define a new application |
12 | class MyApp: public wxApp | |
13 | { | |
14 | public: | |
925e9792 | 15 | MyApp(void){}; |
bbf1f0e5 KB |
16 | bool OnInit(void); |
17 | }; | |
18 | ||
19 | class MyFrame: public wxFrame | |
20 | { | |
21 | public: | |
22 | wxWindow *panel; | |
23 | MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size); | |
bbf1f0e5 KB |
24 | void OnQuit(wxCommandEvent& event); |
25 | void OnTest1(wxCommandEvent& event); | |
26 | ||
27 | DECLARE_EVENT_TABLE() | |
28 | }; | |
29 | ||
30 | class MyDialog : public wxDialog | |
31 | { | |
32 | public: | |
33 | void OnOk(wxCommandEvent& event); | |
34 | void OnCancel(wxCommandEvent& event); | |
35 | ||
36 | DECLARE_EVENT_TABLE() | |
37 | }; | |
38 | ||
39 | #define RESOURCE_QUIT 4 | |
40 | #define RESOURCE_TEST1 2 | |
41 |