1 /////////////////////////////////////////////////////////////////////////
2 // File: src/common/taskbarcmn.cpp
3 // Purpose: Common parts of wxTaskBarIcon class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart, 2003
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
20 #include "wx/taskbar.h"
28 extern WXDLLIMPEXP_DATA_CORE(wxList
) wxPendingDelete
;
30 // DLL options compatibility check:
31 WX_CHECK_BUILD_OPTIONS("wxAdvanced")
33 wxDEFINE_EVENT( wxEVT_TASKBAR_MOVE
, wxTaskBarIconEvent
);
34 wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_DOWN
, wxTaskBarIconEvent
);
35 wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_UP
, wxTaskBarIconEvent
);
36 wxDEFINE_EVENT( wxEVT_TASKBAR_RIGHT_DOWN
, wxTaskBarIconEvent
);
37 wxDEFINE_EVENT( wxEVT_TASKBAR_RIGHT_UP
, wxTaskBarIconEvent
);
38 wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_DCLICK
, wxTaskBarIconEvent
);
39 wxDEFINE_EVENT( wxEVT_TASKBAR_RIGHT_DCLICK
, wxTaskBarIconEvent
);
40 wxDEFINE_EVENT( wxEVT_TASKBAR_BALLOON_TIMEOUT
, wxTaskBarIconEvent
);
41 wxDEFINE_EVENT( wxEVT_TASKBAR_BALLOON_CLICK
, wxTaskBarIconEvent
);
44 BEGIN_EVENT_TABLE(wxTaskBarIconBase
, wxEvtHandler
)
45 EVT_TASKBAR_CLICK(wxTaskBarIconBase::OnRightButtonDown
)
48 void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent
& WXUNUSED(event
))
50 wxMenu
*menu
= CreatePopupMenu();
58 void wxTaskBarIconBase::Destroy()
60 wxPendingDelete
.Append(this);
63 #endif // wxUSE_TASKBARICON