]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxWindowMSW instead of wxWindow to fix wxUniv/MSW compilation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2011 16:12:31 +0000 (16:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Aug 2011 16:12:31 +0000 (16:12 +0000)
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

src/msw/window.cpp

index 7535e4efeb10d7b3710682d038be5878ea8ba1cb..5e2e43a438aeb3282ecd2e8adabfc551c7175815 100644 (file)
@@ -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 )
             win = this;
 
         if ( !win )
             win = this;