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