From 4d7c9f2205f59d01f4dfd148dfa49c364403e02e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 5 Feb 2010 00:26:44 +0000 Subject: [PATCH] Set the ID and event object for wxSetCursorEvents git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5c55dc690b..a0ecd5817b 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4072,6 +4072,8 @@ bool wxWindowMSW::HandleSetCursor(WXHWND WXUNUSED(hWnd), y = pt.y; ScreenToClient(&x, &y); wxSetCursorEvent event(x, y); + event.SetId(GetId()); + event.SetEventObject(this); bool processedEvtSetCursor = GetEventHandler()->ProcessEvent(event); if ( processedEvtSetCursor && event.HasCursor() )