Author: hbelusca Date: Sun Jun 12 16:48:25 2016 New Revision: 71623
URL: http://svn.reactos.org/svn/reactos?rev=71623&view=rev Log: [ROSTEST:PAINTDESKTOP]: Improve the test: don't force complete redraw when resizing the window, and return a non-zero value from WM_ERASEBKGD if the PaintDesktop call succeeded.
Modified: trunk/rostests/win32/user32/paintdesktop/PaintDesktop.c
Modified: trunk/rostests/win32/user32/paintdesktop/PaintDesktop.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/win32/user32/paintdesktop/... ============================================================================== --- trunk/rostests/win32/user32/paintdesktop/PaintDesktop.c [iso-8859-1] (original) +++ trunk/rostests/win32/user32/paintdesktop/PaintDesktop.c [iso-8859-1] Sun Jun 12 16:48:25 2016 @@ -46,7 +46,7 @@ { WNDCLASS wc;
- wc.style = CS_HREDRAW | CS_VREDRAW; + wc.style = 0; wc.lpfnWndProc = WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; @@ -87,8 +87,7 @@ break;
case WM_ERASEBKGND: - PaintDesktop((HDC)wParam); - break; + return (LRESULT)PaintDesktop((HDC)wParam);
case WM_DESTROY: PostQuitMessage(0);