]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/deprecated/resource/resource.h
Regenerate Makefile.in, configure and the VC++ project files after adding rcdefs.h
[wxWidgets.git] / contrib / samples / deprecated / resource / resource.h
CommitLineData
820893d0
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: resource.h
3// Purpose: Dialog resource sample
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
820893d0
JS
12// Define a new application
13class MyApp: public wxApp
14{
15public:
16 MyApp();
17
18 virtual bool OnInit();
19
20 virtual ~MyApp();
21};
22
23class MyPanel: public wxPanel
24{
25public:
26 MyPanel(wxWindow *parent, wxWindowID id, const wxPoint& pos,
27 const wxSize& size, int style, const wxString &name);
28 void OnClick(wxMouseEvent &event);
318c5e9f 29
820893d0
JS
30private:
31 DECLARE_EVENT_TABLE()
32};
33
34class MyFrame: public wxFrame
35{
36public:
37 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title,
38 const wxPoint& pos, const wxSize& size);
39 void OnQuit(wxCommandEvent& event);
40 void OnAbout(wxCommandEvent& event);
41 void OnTestDialog(wxCommandEvent& event);
318c5e9f 42
820893d0
JS
43 wxWindow *panel;
44
45private:
46 DECLARE_EVENT_TABLE()
47};
48
49class MyDialog : public wxDialog
50{
51public:
52 void OnOk(wxCommandEvent& event);
53 void OnCancel(wxCommandEvent& event);
318c5e9f 54
820893d0
JS
55private:
56 DECLARE_EVENT_TABLE()
57};
58
59// the values should be the same as in menu.wxr file!
60enum
61{
62 RESOURCE_TESTDIALOG = 2,
63 RESOURCE_QUIT = 4,
64 RESOURCE_ABOUT = 6
65};