mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user