From 368e6e1002ab1601d45374d9857616ca7758eb67 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 11 Nov 2002 09:55:19 +0000 Subject: [PATCH] Fixed bug [ 635990 ] wxFindWindowAtPointer - mousepos not set git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 44f4e6f643..da18dc71ec 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -5480,9 +5480,10 @@ static TEXTMETRIC wxGetTextMetrics(const wxWindowMSW *win) // Find the wxWindow at the current mouse position, returning the mouse // position. -wxWindow* wxFindWindowAtPointer(wxPoint& WXUNUSED(pt)) +wxWindow* wxFindWindowAtPointer(wxPoint& pt) { - return wxFindWindowAtPoint(wxGetMousePosition()); + pt = wxGetMousePosition(); + return wxFindWindowAtPoint(pt); } wxWindow* wxFindWindowAtPoint(const wxPoint& pt)