Used GetCursorPos for new wxGetMousePosition implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-09-07 13:32:05 +00:00
parent 59a12e9034
commit 1772ead058

View 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);
}