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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user