]>
Commit | Line | Data |
---|---|---|
bd9396d5 HH |
1 | #ifndef __NEW_TEST_G__ |
2 | #define __NEW_TEST_G__ | |
3 | ||
bd9396d5 HH |
4 | #include "wx/panel.h" |
5 | ||
6 | // Define a new application type | |
7 | class MyApp: public wxApp | |
8 | { public: | |
9 | bool OnInit(void); | |
10 | }; | |
11 | ||
12 | class MyFrame: public wxFrame | |
13 | { | |
14 | public: | |
bd9396d5 HH |
15 | |
16 | wxFrameLayout* mpLayout; | |
17 | wxTextCtrl* mpClientWnd; | |
18 | wxPanel* mpInternalFrm; | |
19 | ||
20 | wxTextCtrl* CreateTextCtrl( const wxString& value ); | |
21 | ||
22 | public: | |
23 | MyFrame(wxFrame *frame); | |
24 | virtual ~MyFrame(); | |
25 | ||
26 | bool OnClose(void) { Show(FALSE); return TRUE; } | |
27 | ||
bd9396d5 HH |
28 | void OnExit( wxCommandEvent& event ); |
29 | ||
30 | DECLARE_EVENT_TABLE() | |
31 | }; | |
32 | ||
21677c36 | 33 | #define NEW_TEST_EXIT 1101 |
bd9396d5 HH |
34 | |
35 | #endif |