1 /////////////////////////////////////////////////////////////////////////
2 // File: taskbarcmn.cpp
3 // Purpose: Common parts of wxTaskBarIcon class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart, 2003
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
17 #ifdef wxHAS_TASK_BAR_ICON
19 // DLL options compatibility check:
21 WX_CHECK_BUILD_OPTIONS("wxAdvanced")
25 #include "wx/taskbar.h"
27 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE
)
28 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN
)
29 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP
)
30 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN
)
31 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP
)
32 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK
)
33 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK
)
36 BEGIN_EVENT_TABLE(wxTaskBarIconBase
, wxEvtHandler
)
37 EVT_TASKBAR_RIGHT_DOWN(wxTaskBarIconBase::OnRightButtonDown
)
40 void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent
& WXUNUSED(event
))
42 wxMenu
*menu
= CreatePopupMenu();
50 #endif // defined(wxHAS_TASK_BAR_ICON)