+DEFINE_EVENT_TYPE( wxEVT_TASKBAR_BALLOON_TIMEOUT )
+DEFINE_EVENT_TYPE( wxEVT_TASKBAR_BALLOON_CLICK )
+
+
+BEGIN_EVENT_TABLE(wxTaskBarIconBase, wxEvtHandler)
+ EVT_TASKBAR_CLICK(wxTaskBarIconBase::OnRightButtonDown)
+END_EVENT_TABLE()
+
+void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent& WXUNUSED(event))
+{
+ wxMenu *menu = CreatePopupMenu();
+ if (menu)
+ {
+ PopupMenu(menu);
+ delete menu;
+ }
+}
+
+void wxTaskBarIconBase::Destroy()
+{
+ wxPendingDelete.Append(this);
+}