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:
@@ -881,7 +881,7 @@ bool wxWindowMSW::SetCursor(const wxCursor& cursor)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const wxWindow* win = wxFindWindowAtPoint(wxPoint(pt.x, pt.y));
|
const wxWindowMSW* win = wxFindWindowAtPoint(wxPoint(pt.x, pt.y));
|
||||||
if ( !win )
|
if ( !win )
|
||||||
win = this;
|
win = this;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user