comctl32/tests: Added scrolled listview test for LVM_GETSUBITEMRECT.
authorDylan Smith <dylan.ah.smith@gmail.com>
Wed, 3 Mar 2010 07:39:14 +0000 (02:39 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 3 Mar 2010 10:52:28 +0000 (11:52 +0100)
dlls/comctl32/tests/listview.c

index 8bcd7a4dbf8124ed8531a9341fdcdd9b45f60861..5441cfcfa395600636acc1f9ad3a7906754cb0e8 100644 (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 */