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