Module: wine Branch: master Commit: 7617cc4bcce24cabbad0ad5ae1d76829f492f893 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7617cc4bcce24cabbad0ad5ae1...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Wed Mar 3 02:39:14 2010 -0500
comctl32/tests: Added scrolled listview test for LVM_GETSUBITEMRECT.
---
dlls/comctl32/tests/listview.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 8bcd7a4..5441cfc 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -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 */