-/*
- // Trouble with this is that it sets the cursor for controls too :-(
- if (m_windowCursor.Ok() && !wxIsBusy())
- ::SetCursor(m_windowCursor.GetHCURSOR());
-*/
-
- if (!m_mouseInWindow)
- {
- // Generate an ENTER event
- m_mouseInWindow = TRUE;
- MSWOnMouseEnter(x, y, flags);
- }
-
- wxMouseEvent event(wxEVT_MOTION);
-
- event.m_x = x; event.m_y = y;
- event.m_shiftDown = ((flags & MK_SHIFT) != 0);
- event.m_controlDown = ((flags & MK_CONTROL) != 0);
- event.m_leftDown = ((flags & MK_LBUTTON) != 0);
- event.m_middleDown = ((flags & MK_MBUTTON) != 0);
- event.m_rightDown = ((flags & MK_RBUTTON) != 0);
- event.SetTimestamp(wxApp::sm_lastMessageTime);
- event.SetEventObject( this );
-
- // Window gets a click down message followed by a mouse move
- // message even if position isn't changed! We want to discard
- // the trailing move event if x and y are the same.
- if ((m_lastEvent == wxEVT_RIGHT_DOWN || m_lastEvent == wxEVT_LEFT_DOWN ||
- m_lastEvent == wxEVT_MIDDLE_DOWN) &&
- (m_lastXPos == event.GetX() && m_lastYPos == event.GetY()))
- {
- m_lastXPos = event.GetX(); m_lastYPos = event.GetY();
- m_lastEvent = wxEVT_MOTION;
- return;
- }
-
- m_lastEvent = wxEVT_MOTION;
- m_lastXPos = event.GetX(); m_lastYPos = event.GetY();
- GetEventHandler()->OldOnMouseEvent(event);