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:
parent
d093261668
commit
fa1c12bdd7
@ -1,13 +1,13 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
// File: taskbar.h
|
// File: wx/msw/taskbar.h
|
||||||
// Purpose: Defines wxTaskBarIcon class for manipulating icons on the
|
// Purpose: Defines wxTaskBarIcon class for manipulating icons on the
|
||||||
// Windows task bar.
|
// Windows task bar.
|
||||||
// Author: Julian Smart
|
// Author: Julian Smart
|
||||||
// Modified by:
|
// Modified by:
|
||||||
// Created: 24/3/98
|
// Created: 24/3/98
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Copyright: (c)
|
// Copyright: (c) Julian Smart
|
||||||
// Licence: wxWindows licence
|
// 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_MOVE = wxEVT_FIRST + 1550;
|
||||||
const wxEventType wxEVT_TASKBAR_LEFT_DOWN = wxEVT_FIRST + 1551;
|
const wxEventType wxEVT_TASKBAR_LEFT_DOWN = wxEVT_FIRST + 1551;
|
||||||
|
@ -355,9 +355,7 @@ long wxTaskBarIcon::WindowProc( WXHWND hWnd, unsigned int msg, unsigned int wPar
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (eventType) {
|
if (eventType) {
|
||||||
wxEvent event;
|
wxTaskBarIconEvent event(eventType, this);
|
||||||
event.SetEventType(eventType);
|
|
||||||
event.SetEventObject(this);
|
|
||||||
|
|
||||||
ProcessEvent(event);
|
ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user