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 OnMenuSetOldIcon(wxCommandEvent
&);
28 void OnMenuCheckmark(wxCommandEvent
&);
29 void OnMenuUICheckmark(wxUpdateUIEvent
&);
30 void OnMenuSub(wxCommandEvent
&);
31 virtual wxMenu
*CreatePopupMenu();
37 // Define a new application
38 class MyApp
: public wxApp
44 class MyDialog
: public wxDialog
47 MyDialog(wxWindow
* parent
, const wxWindowID id
, const wxString
& title
,
48 const wxPoint
& pos
, const wxSize
& size
, const long windowStyle
= wxDEFAULT_DIALOG_STYLE
);
51 void OnOK(wxCommandEvent
& event
);
52 void OnExit(wxCommandEvent
& event
);
53 void OnCloseWindow(wxCloseEvent
& event
);
57 MyTaskBarIcon
*m_taskBarIcon
;
58 #if defined(__WXCOCOA__)
59 MyTaskBarIcon
*m_dockIcon
;