]>
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 #if WXWIN_COMPATIBILITY_2_4
18 void OnLButtonDClick(wxEvent
&);
20 void OnLButtonDClick(wxTaskBarIconEvent
&);
22 void OnMenuRestore(wxCommandEvent
&);
23 void OnMenuExit(wxCommandEvent
&);
24 void OnMenuSetNewIcon(wxCommandEvent
&);
26 virtual wxMenu
*CreatePopupMenu();
32 // Define a new application
33 class MyApp
: public wxApp
39 class MyDialog
: public wxDialog
42 MyDialog(wxWindow
* parent
, const wxWindowID id
, const wxString
& title
,
43 const wxPoint
& pos
, const wxSize
& size
, const long windowStyle
= wxDEFAULT_DIALOG_STYLE
);
46 void OnOK(wxCommandEvent
& event
);
47 void OnExit(wxCommandEvent
& event
);
48 void OnCloseWindow(wxCloseEvent
& event
);
52 MyTaskBarIcon
*m_taskBarIcon
;