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 wxDEFINE_EVENT( wxEVT_TASKBAR_MOVE
, wxTaskBarIconEvent
);
35 wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_DOWN
, wxTaskBarIconEvent
);
36 wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_UP
, wxTaskBarIconEvent
);
37 wxDEFINE_EVENT( wxEVT_TASKBAR_RIGHT_DOWN
, wxTaskBarIconEvent
);
38 wxDEFINE_EVENT( wxEVT_TASKBAR_RIGHT_UP
, wxTaskBarIconEvent
);
39 wxDEFINE_EVENT( wxEVT_TASKBAR_LEFT_DCLICK
, wxTaskBarIconEvent
);
40 wxDEFINE_EVENT( wxEVT_TASKBAR_RIGHT_DCLICK
, wxTaskBarIconEvent
);
41 wxDEFINE_EVENT( wxEVT_TASKBAR_BALLOON_TIMEOUT
, wxTaskBarIconEvent
);
42 wxDEFINE_EVENT( wxEVT_TASKBAR_BALLOON_CLICK
, wxTaskBarIconEvent
);
45 BEGIN_EVENT_TABLE(wxTaskBarIconBase
, wxEvtHandler
)
46 EVT_TASKBAR_CLICK(wxTaskBarIconBase::OnRightButtonDown
)
49 void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent
& WXUNUSED(event
))
51 wxMenu
*menu
= CreatePopupMenu();
59 void wxTaskBarIconBase::Destroy()
61 wxPendingDelete
.Append(this);
64 #endif // wxUSE_TASKBARICON