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

Alexandre Julliard julliard at winehq.org
Fri May 29 09:15:51 CDT 2009


Module: wine
Branch: master
Commit: dd24e5de8c3a8e1241b8c3dca881ec941e3cf709
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dd24e5de8c3a8e1241b8c3dca881ec941e3cf709

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Fri May 29 00:47:25 2009 +0400

comctl32/listview: 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++)




More information about the wine-cvs mailing list