1 /////////////////////////////////////////////////////////////////////////
2 // File: src/common/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"
27 extern WXDLLIMPEXP_DATA_CORE(wxList
) wxPendingDelete
;
29 // DLL options compatibility check:
30 WX_CHECK_BUILD_OPTIONS("wxAdvanced")
32 #include "wx/taskbar.h"
34 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE
)
35 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN
)
36 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP
)
37 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN
)
38 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP
)
39 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK
)
40 DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK
)
43 BEGIN_EVENT_TABLE(wxTaskBarIconBase
, wxEvtHandler
)
44 EVT_TASKBAR_CLICK(wxTaskBarIconBase::OnRightButtonDown
)
47 void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent
& WXUNUSED(event
))
49 wxMenu
*menu
= CreatePopupMenu();
57 void wxTaskBarIconBase::Destroy()
59 wxPendingDelete
.Append(this);
62 #endif // wxUSE_TASKBARICON