1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTaskBarIcon sample
4 // Author: Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 class MyTaskBarIcon
: public wxTaskBarIcon
15 #if defined(__WXCOCOA__)
16 MyTaskBarIcon(wxTaskBarIconType iconType
= DEFAULT_TYPE
)
17 : wxTaskBarIcon(iconType
)
23 void OnLeftButtonDClick(wxTaskBarIconEvent
&);
24 void OnMenuRestore(wxCommandEvent
&);
25 void OnMenuExit(wxCommandEvent
&);
26 void OnMenuSetNewIcon(wxCommandEvent
&);
27 void OnMenuCheckmark(wxCommandEvent
&);
28 void OnMenuUICheckmark(wxUpdateUIEvent
&);
29 virtual wxMenu
*CreatePopupMenu();
35 // Define a new application
36 class MyApp
: public wxApp
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
);
49 void OnOK(wxCommandEvent
& event
);
50 void OnExit(wxCommandEvent
& event
);
51 void OnCloseWindow(wxCloseEvent
& event
);
55 MyTaskBarIcon
*m_taskBarIcon
;
56 #if defined(__WXCOCOA__)
57 MyTaskBarIcon
*m_dockIcon
;