1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTaskBarIcon sample
4 // Author: Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 class MyTaskBarIcon
: public wxTaskBarIcon
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);
27 // Define a new application
28 class MyApp
: public wxApp
33 MyTaskBarIcon m_taskBarIcon
;
36 class MyDialog
: public wxDialog
39 MyDialog(wxWindow
* parent
, const wxWindowID id
, const wxString
& title
,
40 const wxPoint
& pos
, const wxSize
& size
, const long windowStyle
= wxDEFAULT_DIALOG_STYLE
);
42 void OnOK(wxCommandEvent
& event
);
43 void OnExit(wxCommandEvent
& event
);
44 void OnCloseWindow(wxCloseEvent
& event
);