Nikolay Sivov : comctl32/listview: Revert column scrolling recent change, it should be handled differently.

Alexandre Julliard julliard at winehq.org
Mon Jun 8 09:44:48 CDT 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sun Jun  7 16:25:06 2009 +0400

comctl32/listview: Revert column scrolling recent change, it should be handled differently.

---

 dlls/comctl32/listview.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 8fc89b6..38f7152 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -4675,14 +4675,11 @@ static void LISTVIEW_ScrollColumns(LISTVIEW_INFO *infoPtr, INT nColumn, INT dx)
 	rcCol.left = rcCol.right;
     
     /* adjust the other columns */
-    for (nCol = 0; nCol < DPA_GetPtrCount(infoPtr->hdpaColumns); nCol++)
+    for (nCol = nColumn; nCol < DPA_GetPtrCount(infoPtr->hdpaColumns); nCol++)
     {
 	lpColumnInfo = LISTVIEW_GetColumnInfo(infoPtr, nCol);
-	if (lpColumnInfo->rcHeader.left >= rcCol.left)
-	{
-	    lpColumnInfo->rcHeader.left  += dx;
-	    lpColumnInfo->rcHeader.right += dx;
-	}
+	lpColumnInfo->rcHeader.left  += dx;
+	lpColumnInfo->rcHeader.right += dx;
     }
 
     /* do not update screen if not in report mode */




More information about the wine-cvs mailing list