]> git.saurik.com Git - wxWidgets.git/blob - utils/framelayout/samples/test/fl_test.h
MSWOnCommand bug fixed
[wxWidgets.git] / utils / framelayout / samples / test / fl_test.h
1 #ifndef __NEW_TEST_G__
2 #define __NEW_TEST_G__
3
4 #include "objstore.h"
5 #include "wx/panel.h"
6
7 // Define a new application type
8 class MyApp: public wxApp
9 { public:
10 bool OnInit(void);
11 };
12
13 class MyFrame: public wxFrame
14 {
15 public:
16 wxObjectStorage mStore;
17
18 wxFrameLayout* mpLayout;
19 wxTextCtrl* mpClientWnd;
20 wxPanel* mpInternalFrm;
21
22 wxTextCtrl* CreateTextCtrl( const wxString& value );
23
24 public:
25 MyFrame(wxFrame *frame);
26 virtual ~MyFrame();
27
28 bool OnClose(void) { Show(FALSE); return TRUE; }
29
30 void OnLoad( wxCommandEvent& event );
31 void OnSave( wxCommandEvent& event );
32 void OnExit( wxCommandEvent& event );
33
34 DECLARE_EVENT_TABLE()
35 };
36
37 #define NEW_TEST_SAVE 1101
38 #define NEW_TEST_LOAD 1102
39 #define NEW_TEST_EXIT 1103
40
41 #endif