comctl32/listview: A bunch of LVM_GETSUBITEMRECT tests.

This commit is contained in:
Nikolay Sivov 2009-05-29 00:58:10 +04:00 committed by Alexandre Julliard
parent dd24e5de8c
commit 6101a48089
1 changed files with 35 additions and 0 deletions

View File

@ -1827,6 +1827,41 @@ todo_wine
todo_wine
expect(3, rect.top);
/* item LVS_REPORT padding isn't applied to subitems */
insert_item(hwnd, 0);
rect.left = LVIR_BOUNDS;
rect.top = 1;
rect.right = rect.bottom = 0;
r = SendMessage(hwnd, LVM_GETSUBITEMRECT, 0, (LPARAM)&rect);
ok(r != 0, "Expected not-null LRESULT\n");
todo_wine {
expect(100, rect.left);
expect(250, rect.right);
}
rect.left = LVIR_ICON;
rect.top = 1;
rect.right = rect.bottom = 0;
r = SendMessage(hwnd, LVM_GETSUBITEMRECT, 0, (LPARAM)&rect);
ok(r != 0, "Expected not-null LRESULT\n");
/* no icon attached - zero width rectangle */
todo_wine {
expect(100, rect.left);
expect(100, rect.right);
}
rect.left = LVIR_LABEL;
rect.top = 1;
rect.right = rect.bottom = 0;
r = SendMessage(hwnd, LVM_GETSUBITEMRECT, 0, (LPARAM)&rect);
ok(r != 0, "Expected not-null LRESULT\n");
/* should equal to LVIR_BOUNDS */
todo_wine {
expect(100, rect.left);
expect(250, rect.right);
}
DestroyWindow(hwnd);
/* try it for non LVS_REPORT style */