comctl32/listview: Fix regression on LVIR_BOUNDS request - y offset still needed.

This commit is contained in:
Nikolay Sivov 2009-05-29 00:47:25 +04:00 committed by Alexandre Julliard
parent 4b73240ae4
commit dd24e5de8c
1 changed files with 2 additions and 2 deletions

View File

@ -5990,7 +5990,7 @@ static BOOL LISTVIEW_GetItemRect(const LISTVIEW_INFO *infoPtr, INT nItem, LPRECT
}
if ((uView == LVS_REPORT) && (type == LVIR_BOUNDS))
OffsetRect(lprc, Origin.x, Origin.y);
OffsetRect(lprc, Origin.x, Position.y + Origin.y);
else
OffsetRect(lprc, Position.x + Origin.x, Position.y + Origin.y);
@ -6543,7 +6543,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
INT j;
/* for top/bottom only */
bounds.left = 0;
bounds.left = LVIR_BOUNDS;
LISTVIEW_GetItemRect(infoPtr, iItem, &bounds);
for (j = 0; j < DPA_GetPtrCount(infoPtr->hdpaColumns); j++)