- m_taskBarIconImpl->GetTaskBarIcon()->ProcessEvent(event);
-}
-
-// ============================================================================
-// wxTaskBarIconWindowCustom
-// ============================================================================
-BEGIN_EVENT_TABLE(wxTaskBarIconWindowCustom, wxTaskBarIconWindow)
- EVT_MOUSE_EVENTS(wxTaskBarIconWindowCustom::OnMouseEvent)
- EVT_PAINT(wxTaskBarIconWindowCustom::OnPaint)
-END_EVENT_TABLE()
-
-void wxTaskBarIconWindowCustom::OnMouseEvent(wxMouseEvent &event)
-{
- wxEventType tbEventType = 0;
- if(event.GetEventType() == wxEVT_MOTION)
- tbEventType = wxEVT_TASKBAR_MOVE;
- else if(event.GetEventType() == wxEVT_LEFT_DOWN)
- tbEventType = wxEVT_TASKBAR_LEFT_DOWN;
- else if(event.GetEventType() == wxEVT_LEFT_UP)
- tbEventType = wxEVT_TASKBAR_LEFT_UP;
- else if(event.GetEventType() == wxEVT_RIGHT_DOWN)
- tbEventType = wxEVT_TASKBAR_RIGHT_DOWN;
- else if(event.GetEventType() == wxEVT_RIGHT_UP)
- tbEventType = wxEVT_TASKBAR_RIGHT_UP;
- else if(event.GetEventType() == wxEVT_LEFT_DCLICK)
- tbEventType = wxEVT_TASKBAR_LEFT_DCLICK;
- else if(event.GetEventType() == wxEVT_RIGHT_DCLICK)
- tbEventType = wxEVT_TASKBAR_RIGHT_DCLICK;
- else
- return;
- wxTaskBarIconEvent tbiEvent(tbEventType,m_taskBarIconImpl->GetTaskBarIcon());
- m_taskBarIconImpl->GetTaskBarIcon()->ProcessEvent(tbiEvent);