]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/uiaction.cpp
Fall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.
[wxWidgets.git] / src / msw / uiaction.cpp
index e8c7d94df88ed826f1ed7cf098b671e54e330b84..09ae5f829673cfce9bff196886cf1857de603b98 100644 (file)
@@ -49,7 +49,7 @@ DWORD EventTypeForMouseButton(int button, bool isDown)
 bool wxUIActionSimulator::MouseDown(int button)
 {
     POINT p;
-    GetCursorPos(&p);
+    wxGetCursorPosMSW(&p);
     mouse_event(EventTypeForMouseButton(button, true), p.x, p.y, 0, 0);
     return true;
 }
@@ -71,7 +71,7 @@ bool wxUIActionSimulator::MouseMove(long x, long y)
 bool wxUIActionSimulator::MouseUp(int button)
 {
     POINT p;
-    GetCursorPos(&p);
+    wxGetCursorPosMSW(&p);
     mouse_event(EventTypeForMouseButton(button, false), p.x, p.y, 0, 0);
     return true;
 }