return DefWindowProcW(hWnd, message, wParam, lParam);
}
-void GetMessageRedrawWindowTest()
+void GetMessageRedrawWindowTest(void)
{
HWND hWnd;
MSG msg;
ShowWindow(hWnd, SW_SHOW);
- while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE ))
+ while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
{
- DispatchMessageA( &msg );
+ DispatchMessageW(&msg);
}
ok(got_paint == TRUE, "Did not process WM_PAINT message\n");
ok(ret == TRUE, "RedrawWindow failed\n");
i = 0;
- while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE ))
+ while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
{
RECORD_MESSAGE(1, msg.message, POST, 0, 0);
if (msg.message == WM_PAINT)
}
if (msg.message != WM_PAINT || i >= 10)
{
- DispatchMessageA( &msg );
+ DispatchMessageW(&msg);
}
}
return 0;
}
}
- return DefWindowProc(hwnd, uMsg, wParam, lParam);
+ return DefWindowProcW(hwnd, uMsg, wParam, lParam);
}
LRESULT CALLBACK ChildWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
- switch (uMsg) {
+ switch (uMsg)
+ {
case WM_SYNCPAINT:
{
PAINTSTRUCT ps;
return 0;
}
}
- return DefWindowProc(hwnd, uMsg, wParam, lParam);
+ return DefWindowProcW(hwnd, uMsg, wParam, lParam);
}
typedef struct STRUCT_TestRedrawWindow
startTime = GetTickCount();
while (GetTickCount() - startTime < messageTime * messageCount)
{
- if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
+ if (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
- DispatchMessage(&msg);
+ DispatchMessageW(&msg);
}
else
{
}
}
-void TestRedrawWindow(STRUCT_TestRedrawWindow* ptestRW) {
+void TestRedrawWindow(STRUCT_TestRedrawWindow* ptestRW)
+{
DWORD style;
int width;
int height;
wc.hInstance = GetModuleHandle(NULL);
wc.lpszClassName = ptestRW->testName;
RegisterClassW(&wc);
- RECT rectWin = { 0, 0, 800, 600 };
+ RECT rectWin = { 0, 0, 700, 500 };
style = WS_OVERLAPPEDWINDOW;
AdjustWindowRectEx(&rectWin, style, FALSE, 0);
width = rectWin.right - rectWin.left;
CW_USEDEFAULT, CW_USEDEFAULT, width, height, NULL, NULL, GetModuleHandle(NULL), NULL);
if (hwnd == NULL)
return;
+ MoveWindow(hwnd, 10, 10, width, height, TRUE);
ShowWindow(hwnd, SW_SHOW);
if(!ptestRW->testChild)
GetModuleHandle(NULL),
NULL
);
+ if (hChildWnd == NULL)
+ return;
}
HDC hdc = GetDC(hwnd);
- RECT drect = { 0, 0, 800, 600 };
+ RECT drect = { 0, 0, 700, 500 };
DrawContent(hdc, &drect, RGB(255, 0, 0));
ReleaseDC(hwnd, hdc);
RgnUpdate = CreateRectRgn(ptestRW->regRect.left, ptestRW->regRect.top, ptestRW->regRect.right, ptestRW->regRect.bottom);
}
- prect=NULL;
+ prect = NULL;
if (ptestRW->useRect)
{
prect = &ptestRW->rectRect;
ptestRW->resultWmNcPaint = resultWmNcPaint;
ptestRW->resultPaintIndex = paintIndex;
- if (RgnUpdate) DeleteObject(RgnUpdate);
+ if (RgnUpdate)
+ DeleteObject(RgnUpdate);
if (hChildWnd != NULL)
DestroyWindow(hChildWnd);
return countErrors;
}
-void InitRect(RECT *rect, int left, int top, int right, int bottom) {
- rect->left = left;
- rect->top = top;
- rect->right = right;
- rect->bottom = bottom;
-}
-
-void FlagsRedrawWindowTest()
+void FlagsRedrawWindowTest(void)
{
STRUCT_TestRedrawWindow testRW;
STRUCT_TestRedrawWindowCompare testRWcompare;
testRW.testPixelPre1x = 50;
testRW.testPixelPre1y = 50;
testRW.testPixelPre2x = 50;
- testRW.testPixelPre2y = 550;
+ testRW.testPixelPre2y = 400;
testRW.testPixelPost1x = 50;
testRW.testPixelPost1y = 50;
testRW.testPixelPost2x = 50;
- testRW.testPixelPost2y = 550;
+ testRW.testPixelPost2y = 400;
+
+ trace("Screen Width/Height (%dx%d)\n",
+ GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
// RDW_ERASE tests
testRW.testName = L"Test1";
testRW.flags = 0;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 0, 200, 200);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 0, 200, 200);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test2";
testRW.flags = RDW_ERASE;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 0, 200, 200);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 0, 200, 200);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test3";
testRW.flags = RDW_INVALIDATE;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test4";
testRW.flags = RDW_INVALIDATE | RDW_ERASE;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = TRUE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test5";
testRW.flags = RDW_FRAME;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test6";
testRW.flags = RDW_INVALIDATE | RDW_FRAME;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = TRUE;
testRW.testName = L"Test7";
testRW.flags = RDW_INTERNALPAINT;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test8";
testRW.flags = RDW_INVALIDATE | RDW_INTERNALPAINT;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test9";
testRW.flags = RDW_NOERASE;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test10";
testRW.flags = RDW_INVALIDATE | RDW_NOERASE;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test11";
testRW.flags = RDW_NOERASE | RDW_ERASE;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test12";
testRW.flags = RDW_INVALIDATE | RDW_NOERASE | RDW_ERASE;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = TRUE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test13";
testRW.flags = RDW_NOFRAME;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test14";
testRW.flags = RDW_INVALIDATE | RDW_NOFRAME;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test15";
testRW.flags = RDW_INVALIDATE | RDW_VALIDATE | RDW_NOFRAME;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test16";
testRW.flags = RDW_VALIDATE | RDW_NOFRAME;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test17";
testRW.flags = RDW_NOINTERNALPAINT;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test18";
testRW.flags = RDW_INVALIDATE | RDW_NOINTERNALPAINT;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test19";
testRW.flags = RDW_VALIDATE | RDW_NOINTERNALPAINT;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test20";
testRW.flags = RDW_ERASENOW;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test21";
testRW.flags = RDW_INVALIDATE | RDW_ERASENOW;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test22";
testRW.flags = RDW_VALIDATE | RDW_ERASENOW;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test23";
testRW.flags = RDW_UPDATENOW;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test24";
testRW.flags = RDW_INVALIDATE | RDW_UPDATENOW;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test25";
testRW.flags = RDW_VALIDATE | RDW_UPDATENOW;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test26";
testRW.flags = RDW_NOCHILDREN;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test27";
testRW.flags = RDW_INVALIDATE | RDW_NOCHILDREN;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x0000FF00;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test28";
testRW.flags = RDW_VALIDATE | RDW_NOCHILDREN;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test29";
testRW.flags = RDW_ALLCHILDREN;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test30";
testRW.flags = RDW_INVALIDATE | RDW_ALLCHILDREN;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPre1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test31";
testRW.flags = RDW_VALIDATE | RDW_ALLCHILDREN;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test32";
testRW.flags = RDW_NOCHILDREN;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test33";
testRW.flags = RDW_INVALIDATE | RDW_NOCHILDREN;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPre1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test34";
testRW.flags = RDW_VALIDATE | RDW_NOCHILDREN;
testRW.useRegion = TRUE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = FALSE;
- InitRect(&testRW.rectRect, 0, 0, 200, 200);
+ SetRect(&testRW.rectRect, 0, 0, 200, 200);
testRW.forcePaint = TRUE;
testRW.testChild = TRUE;
testRWcompare.resultColorPre2 = 0x0000FF00;
testRWcompare.resultColorPost1 = 0x00FF0000;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test35";
testRW.flags = 0;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = TRUE;
- InitRect(&testRW.rectRect, 0, 500, 800, 600);
+ SetRect(&testRW.rectRect, 0, 300, 700, 500);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x000000FF;
- InitRect(&testRWcompare.resultUpdateRect, 0, 0, 200, 200);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 0, 200, 200);
testRWcompare.resultNeedsUpdate = FALSE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;
testRW.testName = L"Test36";
testRW.flags = RDW_INVALIDATE | RDW_ERASENOW;
testRW.useRegion = FALSE;
- InitRect(&testRW.regRect, 0, 500, 800, 600);
+ SetRect(&testRW.regRect, 0, 300, 700, 500);
testRW.useRect = TRUE;
- InitRect(&testRW.rectRect, 0, 500, 800, 600);
+ SetRect(&testRW.rectRect, 0, 300, 700, 500);
testRW.forcePaint = TRUE;
testRW.testChild = FALSE;
testRWcompare.resultColorPre2 = 0x000000FF;
testRWcompare.resultColorPost1 = 0x000000FF;
testRWcompare.resultColorPost2 = 0x0000FF00;
- InitRect(&testRWcompare.resultUpdateRect, 0, 500, 800, 600);
+ SetRect(&testRWcompare.resultUpdateRect, 0, 300, 700, 500);
testRWcompare.resultNeedsUpdate = TRUE;
testRWcompare.resultWmEraseGnd = FALSE;
testRWcompare.resultWmNcPaint = FALSE;