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