]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
fixing focus, fixes #11911
[wxWidgets.git] / 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() )