]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/app.cpp
Weekly catch up and slider fixes.
[wxWidgets.git] / src / os2 / app.cpp
index 39eeae0c8b6bb8ad8bc90d05f963e93c8f464661..1e1a4a4456c19c7ccbc01c71a95484ffcc51b06c 100644 (file)
@@ -422,6 +422,18 @@ bool wxApp::RegisterWindowClasses(
         wxLogLastError(sError);
         return FALSE;
     }
+    if (!::WinRegisterClass( vHab
+                            ,wxCanvasClassNameNR
+                            ,wxWndProc
+                            ,CS_HITTEST | CS_SYNCPAINT
+                            ,sizeof(ULONG)
+                           ))
+    {
+        vError = ::WinGetLastError(vHab);
+        sError = wxPMErrorToStr(vError);
+        wxLogLastError(sError);
+        return FALSE;
+    }
     return TRUE;
 } // end of wxApp::RegisterWindowClasses