]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/resource/resource.h
use Windows standard icons instead of our own (patch 443856)
[wxWidgets.git] / samples / resource / resource.h
... / ...
CommitLineData
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 and Markus Holzem
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13// #pragma interface
14#endif
15
16// Define a new application
17class MyApp: public wxApp
18{
19public:
20 MyApp();
21
22 virtual bool OnInit();
23
24 virtual ~MyApp();
25};
26
27class MyPanel: public wxPanel
28{
29public:
30 MyPanel(wxWindow *parent, wxWindowID id, const wxPoint& pos,
31 const wxSize& size, int style, const wxString &name);
32 void OnClick(wxMouseEvent &event);
33
34private:
35 DECLARE_EVENT_TABLE()
36};
37
38class MyFrame: public wxFrame
39{
40public:
41 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title,
42 const wxPoint& pos, const wxSize& size);
43 void OnQuit(wxCommandEvent& event);
44 void OnAbout(wxCommandEvent& event);
45 void OnTestDialog(wxCommandEvent& event);
46
47 wxWindow *panel;
48
49private:
50 DECLARE_EVENT_TABLE()
51};
52
53class MyDialog : public wxDialog
54{
55public:
56 void OnOk(wxCommandEvent& event);
57 void OnCancel(wxCommandEvent& event);
58
59private:
60 DECLARE_EVENT_TABLE()
61};
62
63// the values should be the same as in menu.wxr file!
64enum
65{
66 RESOURCE_TESTDIALOG = 2,
67 RESOURCE_QUIT = 4,
68 RESOURCE_ABOUT = 6
69};