diff --git a/src/msw/window.cpp b/src/msw/window.cpp index a5f8399a27..903d55ffcf 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2321,7 +2321,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l #ifdef WM_PRINT case WM_PRINTCLIENT: if ( GetParent() && - GetParent()->MSWPrintChild(this, wParam, lParam) ) + GetParent()->MSWPrintChild((wxWindow *)this, wParam, lParam) ) { processed = true; }