]> git.saurik.com Git - wxWidgets.git/blame - src/common/taskbarcmn.cpp
X property data is long for format 32
[wxWidgets.git] / src / common / taskbarcmn.cpp
CommitLineData
3eae0c0b 1/////////////////////////////////////////////////////////////////////////
8898456d 2// File: src/common/taskbarcmn.cpp
3eae0c0b
VS
3// Purpose: Common parts of wxTaskBarIcon class
4// Author: Julian Smart
5// Modified by:
6// Created: 04/04/2003
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart, 2003
65571936 9// Licence: wxWindows licence
3eae0c0b
VS
10/////////////////////////////////////////////////////////////////////////
11
3eae0c0b
VS
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
8898456d
WS
15#ifdef __BORLANDC__
16 #pragma hdrstop
17#endif
63dfd606 18
4f167b46 19#if wxUSE_TASKBARICON
63dfd606 20
8898456d
WS
21#ifndef WX_PRECOMP
22 #include "wx/app.h"
39f0cb54 23 #include "wx/list.h"
3b3dc801 24 #include "wx/menu.h"
8898456d
WS
25#endif
26
39f0cb54
VZ
27extern WXDLLIMPEXP_DATA_CORE(wxList) wxPendingDelete;
28
34fdf762 29// DLL options compatibility check:
34fdf762
VS
30WX_CHECK_BUILD_OPTIONS("wxAdvanced")
31
3eae0c0b
VS
32#include "wx/taskbar.h"
33
34DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE )
35DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN )
36DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP )
37DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN )
38DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP )
39DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK )
40DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK )
c41b6496 41
dae73d74
VS
42
43BEGIN_EVENT_TABLE(wxTaskBarIconBase, wxEvtHandler)
9fcf8144 44 EVT_TASKBAR_CLICK(wxTaskBarIconBase::OnRightButtonDown)
dae73d74
VS
45END_EVENT_TABLE()
46
6466d41e 47void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent& WXUNUSED(event))
dae73d74
VS
48{
49 wxMenu *menu = CreatePopupMenu();
50 if (menu)
51 {
52 PopupMenu(menu);
53 delete menu;
54 }
55}
cb719f2e 56
39f0cb54
VZ
57void wxTaskBarIconBase::Destroy()
58{
59 wxPendingDelete.Append(this);
60}
61
4f167b46 62#endif // wxUSE_TASKBARICON