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
This commit is contained in:
Robin Dunn
2010-02-05 00:26:44 +00:00
parent 63b7efeaa7
commit 4d7c9f2205

View File

@@ -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() )