X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3723b7b1d8cbeebccef4f8ad7fe3884dfca9eca6..d6c9c1b71e069396bbe3850862de9aa10e6812e0:/src/mac/window.cpp?ds=sidebyside diff --git a/src/mac/window.cpp b/src/mac/window.cpp index ea685b9886..d2696fe6e0 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -2361,14 +2361,16 @@ wxMacDrawingClientHelper::~wxMacDrawingClientHelper() // position. wxWindow* wxFindWindowAtPointer(wxPoint& pt) { - wxFAIL_MSG(_("Not implemented")); - return NULL; + pt = wxGetMousePosition(); + wxWindow* found = wxFindWindowAtPoint(pt); + return found; } // Get the current mouse position. wxPoint wxGetMousePosition() { - wxFAIL_MSG(_("Not implemented")); - return wxPoint; + int x, y; + wxGetMousePosition(& x, & y); + return wxPoint(x, y); }