From: Julian Smart Date: Thu, 7 Sep 2000 13:32:05 +0000 (+0000) Subject: Used GetCursorPos for new wxGetMousePosition implementation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1772ead05876c9139b9ecbe4559a813a315cb3cd Used GetCursorPos for new wxGetMousePosition implementation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); }