diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 7d957ea588..e7f505bf7b 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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(win)); + event.SetEventObject(const_cast(win)); } else // No associated window. {