]> git.saurik.com Git - wxWidgets.git/blame - utils/framelayout/samples/test/fl_test.h
MSWOnCommand bug fixed
[wxWidgets.git] / utils / framelayout / samples / test / fl_test.h
CommitLineData
bd9396d5
HH
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
8class MyApp: public wxApp
9{ public:
10 bool OnInit(void);
11};
12
13class MyFrame: public wxFrame
14{
15public:
16 wxObjectStorage mStore;
17
18 wxFrameLayout* mpLayout;
19 wxTextCtrl* mpClientWnd;
20 wxPanel* mpInternalFrm;
21
22 wxTextCtrl* CreateTextCtrl( const wxString& value );
23
24public:
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