[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.

svn path=/trunk/; revision=71623
This commit is contained in:
Hermès Bélusca-Maïto 2016-06-12 16:48:25 +00:00
parent ac4a897155
commit d63e0ea3fc

View 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);