]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxTaskBarIcon compilation
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Nov 2001 23:39:26 +0000 (23:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Nov 2001 23:39:26 +0000 (23:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/taskbar.h
src/msw/taskbar.cpp

index bb3a9db3f55cb82b6b9192157217868ffa75f689..c0fa59a0a65d853bbd34426ca7cde5cd117486ee 100644 (file)
@@ -1,13 +1,13 @@
 /////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////
-// File:        taskbar.h
-// Purpose:        Defines wxTaskBarIcon class for manipulating icons on the
+// File:        wx/msw/taskbar.h
+// Purpose:     Defines wxTaskBarIcon class for manipulating icons on the
 //              Windows task bar.
 // Author:      Julian Smart
 // Modified by:
 // Created:     24/3/98
 // RCS-ID:      $Id$
 //              Windows task bar.
 // Author:      Julian Smart
 // Modified by:
 // Created:     24/3/98
 // RCS-ID:      $Id$
-// Copyright:   (c)
-// Licence:    wxWindows licence
+// Copyright:   (c) Julian Smart
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////
 
 #ifndef _TASKBAR_H_
 /////////////////////////////////////////////////////////////////////////
 
 #ifndef _TASKBAR_H_
@@ -76,6 +76,21 @@ protected:
 };
 
 
 };
 
 
+// ----------------------------------------------------------------------------
+// wxTaskBarIcon events
+// ----------------------------------------------------------------------------
+
+class WXDLLEXPORT wxTaskBarIconEvent : public wxEvent
+{
+public:
+    wxTaskBarIconEvent(wxEventType evtType, wxTaskBarIcon *tbIcon)
+        : wxEvent(-1, evtType)
+        {
+            SetEventObject(tbIcon);
+        }
+
+    virtual wxEvent *Clone() const { return new wxTaskBarIconEvent(*this); }
+};
 
 const wxEventType wxEVT_TASKBAR_MOVE =                  wxEVT_FIRST + 1550;
 const wxEventType wxEVT_TASKBAR_LEFT_DOWN =             wxEVT_FIRST + 1551;
 
 const wxEventType wxEVT_TASKBAR_MOVE =                  wxEVT_FIRST + 1550;
 const wxEventType wxEVT_TASKBAR_LEFT_DOWN =             wxEVT_FIRST + 1551;
index 0cab9d2d3aecfdb2f333eca1ce15d7eda95b10ac..fa2ae4311161dffc0a69850c6ffbbb29816178a6 100644 (file)
@@ -355,9 +355,7 @@ long wxTaskBarIcon::WindowProc( WXHWND hWnd, unsigned int msg, unsigned int wPar
         }
 
     if (eventType) {
         }
 
     if (eventType) {
-        wxEvent event;
-        event.SetEventType(eventType);
-        event.SetEventObject(this);
+        wxTaskBarIconEvent event(eventType, this);
 
         ProcessEvent(event);
     }
 
         ProcessEvent(event);
     }