]>
Commit | Line | Data |
---|---|---|
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 VS |
18 | |
19 | #ifdef wxHAS_TASK_BAR_ICON | |
20 | ||
8898456d WS |
21 | #ifndef WX_PRECOMP |
22 | #include "wx/app.h" | |
23 | #endif | |
24 | ||
34fdf762 | 25 | // DLL options compatibility check: |
34fdf762 VS |
26 | WX_CHECK_BUILD_OPTIONS("wxAdvanced") |
27 | ||
28 | ||
6466d41e | 29 | #include "wx/menu.h" |
3eae0c0b VS |
30 | #include "wx/taskbar.h" |
31 | ||
32 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE ) | |
33 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN ) | |
34 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP ) | |
35 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN ) | |
36 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP ) | |
37 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK ) | |
38 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK ) | |
c41b6496 | 39 | |
dae73d74 VS |
40 | |
41 | BEGIN_EVENT_TABLE(wxTaskBarIconBase, wxEvtHandler) | |
42 | EVT_TASKBAR_RIGHT_DOWN(wxTaskBarIconBase::OnRightButtonDown) | |
43 | END_EVENT_TABLE() | |
44 | ||
6466d41e | 45 | void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent& WXUNUSED(event)) |
dae73d74 VS |
46 | { |
47 | wxMenu *menu = CreatePopupMenu(); | |
48 | if (menu) | |
49 | { | |
50 | PopupMenu(menu); | |
51 | delete menu; | |
52 | } | |
53 | } | |
cb719f2e | 54 | |
dae73d74 | 55 | #endif // defined(wxHAS_TASK_BAR_ICON) |