]> git.saurik.com Git - wxWidgets.git/blob - samples/taskbar/tbtest.h
SetValue is not adding a line if values does not exist
[wxWidgets.git] / samples / taskbar / tbtest.h
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
12 class MyTaskBarIcon: public wxTaskBarIcon
13 {
14 public:
15 MyTaskBarIcon() {};
16
17 void OnLeftButtonDClick(wxTaskBarIconEvent&);
18 void OnMenuRestore(wxCommandEvent&);
19 void OnMenuExit(wxCommandEvent&);
20 void OnMenuSetNewIcon(wxCommandEvent&);
21
22 virtual wxMenu *CreatePopupMenu();
23
24 DECLARE_EVENT_TABLE()
25 };
26
27
28 // Define a new application
29 class MyApp: public wxApp
30 {
31 public:
32 bool OnInit(void);
33 };
34
35 class MyDialog: public wxDialog
36 {
37 public:
38 MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
39 const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE);
40 ~MyDialog();
41
42 void OnOK(wxCommandEvent& event);
43 void OnExit(wxCommandEvent& event);
44 void OnCloseWindow(wxCloseEvent& event);
45 void Init(void);
46
47 protected:
48 MyTaskBarIcon *m_taskBarIcon;
49
50 DECLARE_EVENT_TABLE()
51 };
52
53