]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUniv/MSW compilation fix.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Oct 2010 23:08:47 +0000 (23:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Oct 2010 23:08:47 +0000 (23:08 +0000)
wxUniv/MSW compilation was broken by r65589, fix it by not assuming that
wxWindowMSW is a wxWindow because wxWindow derives from it in wxUniv.

Closes #12534.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 7d957ea588517fd0761647e1bdb9f55959f19d42..e7f505bf7bf35ad56f6f2bd0c113ffada1e0f2eb 100644 (file)
@@ -5648,12 +5648,12 @@ void
 MSWInitAnyKeyEvent(wxKeyEvent& event,
                    WXWPARAM wParam,
                    WXLPARAM lParam,
-                   const wxWindow *win /* may be NULL */)
+                   const wxWindowBase *win /* may be NULL */)
 {
     if ( win )
     {
         event.SetId(win->GetId());
-        event.SetEventObject(const_cast<wxWindow *>(win));
+        event.SetEventObject(const_cast<wxWindowBase *>(win));
     }
     else // No associated window.
     {