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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "taskbar.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
21 #ifdef wxHAS_TASK_BAR_ICON
23 // DLL options compatibility check:
25 WX_CHECK_BUILD_OPTIONS("wxAdvanced")
29 #include "wx/taskbar.h"
31 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE
)
32 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN
)
33 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP
)
34 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN
)
35 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP
)
36 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK
)
37 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK
)
40 BEGIN_EVENT_TABLE(wxTaskBarIconBase
, wxEvtHandler
)
41 EVT_TASKBAR_RIGHT_DOWN(wxTaskBarIconBase::OnRightButtonDown
)
44 void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent
& WXUNUSED(event
))
46 wxMenu
*menu
= CreatePopupMenu();
54 #endif // defined(wxHAS_TASK_BAR_ICON)