]> git.saurik.com Git - wxWidgets.git/commitdiff
Used GetCursorPos for new wxGetMousePosition implementation
authorJulian Smart <julian@anthemion.co.uk>
Thu, 7 Sep 2000 13:32:05 +0000 (13:32 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 7 Sep 2000 13:32:05 +0000 (13:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 2680a55bcdbd0eaa43f153fc3572b17ae8867da5..6a4d9c2250771e3b42943a6006a80853596b84a1 100644 (file)
@@ -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);
 }