comctl32/tests: Added scrolled listview test for LVM_GETSUBITEMRECT.

This commit is contained in:
Dylan Smith 2010-03-03 02:39:14 -05:00 committed by Alexandre Julliard
parent a7053ecc4c
commit 7617cc4bcc
1 changed files with 12 additions and 0 deletions

View File

@ -2135,6 +2135,18 @@ todo_wine
expect(100, rect.left);
expect(250, rect.right);
ListView_Scroll(hwnd, 10, 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");
expect(90, rect.left);
expect(240, rect.right);
ListView_Scroll(hwnd, -10, 0);
DestroyWindow(hwnd);
/* try it for non LVS_REPORT style */