[2/4] comctl32/listview: Fix regression on LVIR_BOUNDS request - y offset still needed.
Nikolay Sivov
bunglehead at gmail.com
Fri May 29 05:04:04 CDT 2009
Changelog:
- Fix regression on LVIR_BOUNDS request - y offset still needed.
>From 4e5fddf0a39e1147d8e9143ac5e83b28eea8aa39 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri, 29 May 2009 00:47:25 +0400
Subject: Fix regression on LVIR_BOUNDS request - y offset still needed.
---
dlls/comctl32/listview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index fb1828e..92bab29 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -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++)
--
1.5.6.5
More information about the wine-patches
mailing list