comctl32/tests: Fix failures for 120DPI display.

This commit is contained in:
Greg Geldorp 2011-01-20 11:40:17 +01:00 committed by Alexandre Julliard
parent 40753023c2
commit 50a25a8ebb
3 changed files with 7 additions and 3 deletions

View File

@ -3309,7 +3309,7 @@ static void test_getitemrect(void)
expect(0, rect.left);
expect(0, rect.top);
hdc = GetDC(hwnd);
todo_wine expect(GetDeviceCaps(hdc, LOGPIXELSX), rect.right);
todo_wine expect(((GetDeviceCaps(hdc, LOGPIXELSX) + 15) / 16) * 16, rect.right);
ReleaseDC(hwnd, hdc);
DestroyWindow(hwnd);
@ -4163,7 +4163,7 @@ static void test_getcolumnwidth(void)
SendMessage(hwnd, LVM_INSERTITEMA, 0, (LPARAM)&itema);
ret = SendMessage(hwnd, LVM_GETCOLUMNWIDTH, 0, 0);
hdc = GetDC(hwnd);
todo_wine expect(GetDeviceCaps(hdc, LOGPIXELSX), ret);
todo_wine expect(((GetDeviceCaps(hdc, LOGPIXELSX) + 15) / 16) * 16, ret);
ReleaseDC(hwnd, hdc);
DestroyWindow(hwnd);
}

View File

@ -924,7 +924,7 @@ static void expect_band_content_(int line, HWND hRebar, UINT uBand, INT fStyle,
expect_eq(line, rb.cyIntegral, cyIntegral, int, "%x");
expect_eq(line, rb.cxIdeal, cxIdeal, int, "%d");
expect_eq(line, rb.lParam, lParam, LPARAM, "%ld");
ok(rb.cxHeader == cxHeader || broken(rb.cxHeader == cxHeader_broken),
ok(rb.cxHeader == cxHeader || rb.cxHeader == cxHeader + 1 || broken(rb.cxHeader == cxHeader_broken),
"expected %d for %d from line %d\n", cxHeader, rb.cxHeader, line);
}

View File

@ -91,6 +91,10 @@ static const struct message focus_seq[] = {
{ WM_NCCALCSIZE, sent|wparam|defwinproc, TRUE },
{ WM_WINDOWPOSCHANGED, sent|defwinproc },
{ WM_SIZE, sent|defwinproc },
{ WM_WINDOWPOSCHANGING, sent|defwinproc|optional },
{ WM_NCCALCSIZE, sent|wparam|defwinproc|optional, TRUE },
{ WM_WINDOWPOSCHANGED, sent|defwinproc|optional },
{ WM_SIZE, sent|defwinproc|optional },
{ WM_PAINT, sent|defwinproc },
{ WM_NCPAINT, sent|wparam|defwinproc, 1 },
{ WM_ERASEBKGND, sent|defwinproc },