]>
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 | |
4bc64712 VS |
17 | void OnRButtonUp(wxEvent&); |
18 | void OnLButtonDClick(wxEvent&); | |
a42b93aa JS |
19 | void OnMenuRestore(wxCommandEvent&); |
20 | void OnMenuExit(wxCommandEvent&); | |
ab85e6cd | 21 | void OnMenuSetNewIcon(wxCommandEvent&); |
69ecd30f RD |
22 | |
23 | DECLARE_EVENT_TABLE() | |
bbf1f0e5 KB |
24 | }; |
25 | ||
26 | ||
27 | // Define a new application | |
28 | class MyApp: public wxApp | |
29 | { | |
30 | public: | |
31 | bool OnInit(void); | |
bbf1f0e5 KB |
32 | }; |
33 | ||
34 | class MyDialog: public wxDialog | |
35 | { | |
36 | public: | |
37 | MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title, | |
38 | const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE); | |
1e6d9c20 | 39 | ~MyDialog(); |
bbf1f0e5 KB |
40 | |
41 | void OnOK(wxCommandEvent& event); | |
42 | void OnExit(wxCommandEvent& event); | |
43 | void OnCloseWindow(wxCloseEvent& event); | |
44 | void Init(void); | |
45 | ||
1e6d9c20 VS |
46 | protected: |
47 | MyTaskBarIcon *m_taskBarIcon; | |
48 | ||
bbf1f0e5 KB |
49 | DECLARE_EVENT_TABLE() |
50 | }; | |
51 | ||
52 |