diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5762e1de98..94f3430ce1 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2887,7 +2887,7 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam // we could have got an event from our child, reflect it back // to it if this is the case - wxWindow *win = NULL; + wxWindowMSW *win = NULL; if ( wParam != m_hWnd ) { win = FindItemByHWND((WXHWND)wParam);