1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTaskBarIcon sample
4 // Author: Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 class MyTaskBarIcon
: public wxTaskBarIcon
17 void OnRButtonUp(wxEvent
&);
18 void OnLButtonDClick(wxEvent
&);
19 void OnMenuRestore(wxCommandEvent
&);
20 void OnMenuExit(wxCommandEvent
&);
21 void OnMenuSetNewIcon(wxCommandEvent
&);
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
);