Commit e1a0a66f authored by Austin Lund's avatar Austin Lund Committed by Alexandre Julliard

comctl32/tests: Default listview width appears to be 1 inch.

parent bb0cefd5
...@@ -3269,6 +3269,7 @@ static void test_getitemrect(void) ...@@ -3269,6 +3269,7 @@ static void test_getitemrect(void)
LVCOLUMNA col; LVCOLUMNA col;
INT order[2]; INT order[2];
POINT pt; POINT pt;
HDC hdc;
/* rectangle isn't empty for empty text items */ /* rectangle isn't empty for empty text items */
hwnd = create_listview_control(LVS_LIST); hwnd = create_listview_control(LVS_LIST);
...@@ -3282,7 +3283,9 @@ static void test_getitemrect(void) ...@@ -3282,7 +3283,9 @@ static void test_getitemrect(void)
expect(TRUE, r); expect(TRUE, r);
expect(0, rect.left); expect(0, rect.left);
expect(0, rect.top); expect(0, rect.top);
todo_wine expect(96, rect.right); hdc = GetDC(hwnd);
todo_wine expect(GetDeviceCaps(hdc, LOGPIXELSX), rect.right);
ReleaseDC(hwnd, hdc);
DestroyWindow(hwnd); DestroyWindow(hwnd);
hwnd = create_listview_control(LVS_REPORT); hwnd = create_listview_control(LVS_REPORT);
...@@ -4110,6 +4113,7 @@ static void test_getcolumnwidth(void) ...@@ -4110,6 +4113,7 @@ static void test_getcolumnwidth(void)
DWORD_PTR style; DWORD_PTR style;
LVCOLUMNA col; LVCOLUMNA col;
LVITEMA itema; LVITEMA itema;
HDC hdc;
/* default column width */ /* default column width */
hwnd = create_listview_control(LVS_ICON); hwnd = create_listview_control(LVS_ICON);
...@@ -4133,7 +4137,9 @@ static void test_getcolumnwidth(void) ...@@ -4133,7 +4137,9 @@ static void test_getcolumnwidth(void)
memset(&itema, 0, sizeof(itema)); memset(&itema, 0, sizeof(itema));
SendMessage(hwnd, LVM_INSERTITEMA, 0, (LPARAM)&itema); SendMessage(hwnd, LVM_INSERTITEMA, 0, (LPARAM)&itema);
ret = SendMessage(hwnd, LVM_GETCOLUMNWIDTH, 0, 0); ret = SendMessage(hwnd, LVM_GETCOLUMNWIDTH, 0, 0);
todo_wine expect(96, ret); hdc = GetDC(hwnd);
todo_wine expect(GetDeviceCaps(hdc, LOGPIXELSX), ret);
ReleaseDC(hwnd, hdc);
DestroyWindow(hwnd); DestroyWindow(hwnd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment