]> git.saurik.com Git - wxWidgets.git/commitdiff
Set Id and EventObject for wxSetCursorEvent
authorRobin Dunn <robin@alldunn.com>
Tue, 9 Feb 2010 01:33:44 +0000 (01:33 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 9 Feb 2010 01:33:44 +0000 (01:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 4d93f440928cee70f3c49c203a442b9f88d21a55..da62175805dfcb6b06a7923017254dd9b0182a54 100644 (file)
@@ -4224,6 +4224,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 = HandleWindowEvent(event);
         if ( processedEvtSetCursor && event.HasCursor() )