[ROSTEST:PAINTDESKTOP]: Improve the test: don't force complete redraw when resizing...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 12 Jun 2016 16:48:25 +0000 (16:48 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 12 Jun 2016 16:48:25 +0000 (16:48 +0000)
svn path=/trunk/; revision=71623

rostests/win32/user32/paintdesktop/PaintDesktop.c

index c14825c..014c89d 100644 (file)
@@ -46,7 +46,7 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
 {
     WNDCLASS wc;
 
-    wc.style          = CS_HREDRAW | CS_VREDRAW;
+    wc.style          = 0;
     wc.lpfnWndProc    = WndProc;
     wc.cbClsExtra     = 0;
     wc.cbWndExtra     = 0;
@@ -87,8 +87,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
             break;
 
         case WM_ERASEBKGND:
-            PaintDesktop((HDC)wParam);
-            break;
+            return (LRESULT)PaintDesktop((HDC)wParam);
 
         case WM_DESTROY:
             PostQuitMessage(0);