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

This commit is contained in:
Nikolay Sivov 2009-06-07 16:25:06 +04:00 committed by Alexandre Julliard
parent e636998890
commit 839b31fcce
1 changed files with 3 additions and 6 deletions

View File

@ -4675,14 +4675,11 @@ static void LISTVIEW_ScrollColumns(LISTVIEW_INFO *infoPtr, INT nColumn, INT dx)
rcCol.left = rcCol.right; rcCol.left = rcCol.right;
/* adjust the other columns */ /* 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); 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 */ /* do not update screen if not in report mode */