/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/src/common/taskbarcmn.cpp
ViewVC logotype

Annotation of /trunk/3rdparty/wxWidgets/src/common/taskbarcmn.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 4 months ago) by william
File size: 1472 byte(s)
committing r3113 initial commit again...
1 william 31 /////////////////////////////////////////////////////////////////////////
2     // File: src/common/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: taskbarcmn.cpp 44138 2007-01-07 19:44:14Z VZ $
8     // Copyright: (c) Julian Smart, 2003
9     // Licence: wxWindows licence
10     /////////////////////////////////////////////////////////////////////////
11    
12     // For compilers that support precompilation, includes "wx.h".
13     #include "wx/wxprec.h"
14    
15     #ifdef __BORLANDC__
16     #pragma hdrstop
17     #endif
18    
19     #ifdef wxHAS_TASK_BAR_ICON
20    
21     #ifndef WX_PRECOMP
22     #include "wx/app.h"
23     #include "wx/menu.h"
24     #endif
25    
26     // DLL options compatibility check:
27     WX_CHECK_BUILD_OPTIONS("wxAdvanced")
28    
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 )
38    
39    
40     BEGIN_EVENT_TABLE(wxTaskBarIconBase, wxEvtHandler)
41     EVT_TASKBAR_CLICK(wxTaskBarIconBase::OnRightButtonDown)
42     END_EVENT_TABLE()
43    
44     void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent& WXUNUSED(event))
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)

  ViewVC Help
Powered by ViewVC 1.1.22