From 1772ead05876c9139b9ecbe4559a813a315cb3cd Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 7 Sep 2000 13:32:05 +0000 Subject: [PATCH] Used GetCursorPos for new wxGetMousePosition implementation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 2680a55bcd..6a4d9c2250 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4408,7 +4408,8 @@ wxWindow* wxFindWindowAtPointer(wxPoint& pt) // Get the current mouse position. wxPoint wxGetMousePosition() { - extern MSG s_currentMsg; - return wxPoint(s_currentMsg.pt.x, s_currentMsg.pt.y); + POINT pt; + GetCursorPos( & pt ); + return wxPoint(pt.x, pt.y); } -- 2.50.0