fixed wxTaskBarIcon compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-11-21 23:39:26 +00:00
parent d093261668
commit fa1c12bdd7
2 changed files with 20 additions and 7 deletions

View File

@ -1,12 +1,12 @@
/////////////////////////////////////////////////////////////////////////
// File: taskbar.h
// 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$
// Copyright: (c)
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////
@ -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;

View File

@ -355,9 +355,7 @@ long wxTaskBarIcon::WindowProc( WXHWND hWnd, unsigned int msg, unsigned int wPar
}
if (eventType) {
wxEvent event;
event.SetEventType(eventType);
event.SetEventObject(this);
wxTaskBarIconEvent event(eventType, this);
ProcessEvent(event);
}