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
This commit is contained in:
Vadim Zeitlin
2011-08-04 16:12:31 +00:00
parent 47e2f88166
commit 1df57a24e5

View File

@@ -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;