From: Vadim Zeitlin Date: Thu, 4 Aug 2011 16:12:31 +0000 (+0000) Subject: Use wxWindowMSW instead of wxWindow to fix wxUniv/MSW compilation. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1df57a24e5f638a812c7099e1bb2822fabba248c Use wxWindowMSW instead of wxWindow to fix wxUniv/MSW compilation. wxFindWindowAtPoint() only returns wxWindowMSW, not the derived wxWindow, in wxUniv build so assign its return value to wxWindowMSW to avoid compilation problems in it. Closes #12534. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 7535e4efeb..5e2e43a438 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -881,7 +881,7 @@ bool wxWindowMSW::SetCursor(const wxCursor& cursor) return false; } - const wxWindow* win = wxFindWindowAtPoint(wxPoint(pt.x, pt.y)); + const wxWindowMSW* win = wxFindWindowAtPoint(wxPoint(pt.x, pt.y)); if ( !win ) win = this;