]>
Commit | Line | Data |
---|---|---|
3eae0c0b VS |
1 | ///////////////////////////////////////////////////////////////////////// |
2 | // File: taskbarcmn.cpp | |
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 | ||
14f355c2 | 12 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
3eae0c0b VS |
13 | #pragma implementation "taskbar.h" |
14 | #endif | |
15 | ||
16 | // For compilers that support precompilation, includes "wx.h". | |
17 | #include "wx/wxprec.h" | |
18 | ||
63dfd606 VS |
19 | #include "wx/defs.h" |
20 | ||
21 | #ifdef wxHAS_TASK_BAR_ICON | |
22 | ||
34fdf762 VS |
23 | // DLL options compatibility check: |
24 | #include "wx/app.h" | |
25 | WX_CHECK_BUILD_OPTIONS("wxAdvanced") | |
26 | ||
27 | ||
6466d41e | 28 | #include "wx/menu.h" |
3eae0c0b VS |
29 | #include "wx/taskbar.h" |
30 | ||
31 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_MOVE ) | |
32 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN ) | |
33 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP ) | |
34 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN ) | |
35 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP ) | |
36 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK ) | |
37 | DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK ) | |
c41b6496 | 38 | |
dae73d74 VS |
39 | |
40 | BEGIN_EVENT_TABLE(wxTaskBarIconBase, wxEvtHandler) | |
41 | EVT_TASKBAR_RIGHT_DOWN(wxTaskBarIconBase::OnRightButtonDown) | |
42 | END_EVENT_TABLE() | |
43 | ||
6466d41e | 44 | void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent& WXUNUSED(event)) |
dae73d74 VS |
45 | { |
46 | wxMenu *menu = CreatePopupMenu(); | |
47 | if (menu) | |
48 | { | |
49 | PopupMenu(menu); | |
50 | delete menu; | |
51 | } | |
52 | } | |
53 | ||
54 | #endif // defined(wxHAS_TASK_BAR_ICON) |