]>
git.saurik.com Git - wxWidgets.git/blob - samples/taskbar/tbtest.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTaskBarIcon sample
4 // Author: Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 class MyTaskBarIcon
: public wxTaskBarIcon
17 void OnLButtonDClick(wxTaskBarIconEvent
&);
18 void OnMenuRestore(wxCommandEvent
&);
19 void OnMenuExit(wxCommandEvent
&);
20 void OnMenuSetNewIcon(wxCommandEvent
&);
22 virtual wxMenu
*CreatePopupMenu();
28 // Define a new application
29 class MyApp
: public wxApp
35 class MyDialog
: public wxDialog
38 MyDialog(wxWindow
* parent
, const wxWindowID id
, const wxString
& title
,
39 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
);
48 MyTaskBarIcon
*m_taskBarIcon
;