]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/taskbar/tbtest.h
reSWIGged
[wxWidgets.git] / samples / taskbar / tbtest.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: tbtest.h
3// Purpose: wxTaskBarIcon sample
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c)
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12class MyTaskBarIcon: public wxTaskBarIcon
13{
14public:
15 MyTaskBarIcon() {};
16
17 void OnRButtonUp(wxEvent&);
18 void OnLButtonDClick(wxEvent&);
19 void OnMenuRestore(wxCommandEvent&);
20 void OnMenuExit(wxCommandEvent&);
21 void OnMenuSetNewIcon(wxCommandEvent&);
22
23DECLARE_EVENT_TABLE()
24};
25
26
27// Define a new application
28class MyApp: public wxApp
29{
30public:
31 bool OnInit(void);
32};
33
34class MyDialog: public wxDialog
35{
36public:
37 MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
38 const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE);
39 ~MyDialog();
40
41 void OnOK(wxCommandEvent& event);
42 void OnExit(wxCommandEvent& event);
43 void OnCloseWindow(wxCloseEvent& event);
44 void Init(void);
45
46protected:
47 MyTaskBarIcon *m_taskBarIcon;
48
49DECLARE_EVENT_TABLE()
50};
51
52