]>
Commit | Line | Data |
---|---|---|
bbf1f0e5 KB |
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) | |
2f6c54eb | 9 | // Licence: wxWindows licence |
bbf1f0e5 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | class MyTaskBarIcon: public wxTaskBarIcon | |
13 | { | |
14 | public: | |
2f6c54eb | 15 | MyTaskBarIcon() {}; |
bbf1f0e5 | 16 | |
69ecd30f RD |
17 | virtual void OnMouseMove(wxEvent&); |
18 | virtual void OnLButtonDown(wxEvent&); | |
19 | virtual void OnLButtonUp(wxEvent&); | |
20 | virtual void OnRButtonDown(wxEvent&); | |
21 | virtual void OnRButtonUp(wxEvent&); | |
22 | virtual void OnLButtonDClick(wxEvent&); | |
23 | virtual void OnRButtonDClick(wxEvent&); | |
24 | ||
a42b93aa JS |
25 | void OnMenuRestore(wxCommandEvent&); |
26 | void OnMenuExit(wxCommandEvent&); | |
ab85e6cd | 27 | void OnMenuSetNewIcon(wxCommandEvent&); |
69ecd30f RD |
28 | |
29 | DECLARE_EVENT_TABLE() | |
bbf1f0e5 KB |
30 | }; |
31 | ||
32 | ||
33 | // Define a new application | |
34 | class MyApp: public wxApp | |
35 | { | |
36 | public: | |
37 | bool OnInit(void); | |
38 | protected: | |
39 | MyTaskBarIcon m_taskBarIcon; | |
40 | }; | |
41 | ||
42 | class MyDialog: public wxDialog | |
43 | { | |
44 | public: | |
45 | MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title, | |
46 | const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE); | |
47 | ||
48 | void OnOK(wxCommandEvent& event); | |
49 | void OnExit(wxCommandEvent& event); | |
50 | void OnCloseWindow(wxCloseEvent& event); | |
51 | void Init(void); | |
52 | ||
53 | DECLARE_EVENT_TABLE() | |
54 | }; | |
55 | ||
56 |