X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05facebb89314f458099e0297abaa9a1b152c3a9..bf5c9d349fb25c069e66e86ee551e3605f6c5b90:/src/os2/window.cpp?ds=sidebyside diff --git a/src/os2/window.cpp b/src/os2/window.cpp index e41f21f386..38cc1963b1 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -442,17 +442,19 @@ bool wxWindowOS2::Create( // Generic OS/2 Windows have no Control Data but other classes // that call OS2Create may have some. // - OS2Create( (PSZ)wxCanvasClassName - ,rName.c_str() - ,ulCreateFlags - ,rPos - ,rSize - ,NULL // Control Data - ,dwExStyle - ,TRUE // Child - ); + bool bRetVal = OS2Create( (PSZ)wxCanvasClassName + ,rName.c_str() + ,ulCreateFlags + ,rPos + ,rSize + ,NULL // Control Data + ,dwExStyle + ,TRUE // Child + ); - return(TRUE); + if (bRetVal) + ::WinSubclassWindow(m_hWnd, (PFNWP)wxWndProc); + return(bRetVal); } // end of wxWindowOS2::Create // ---------------------------------------------------------------------------