Nikolay Sivov : comctl32/listview: Improve column scrolling.
Module: wine Branch: master Commit: 475dcb81f58ed8d479ab3a37a811567d583d7701 URL: http://source.winehq.org/git/wine.git/?a=commit;h=475dcb81f58ed8d479ab3a37a8... Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Fri Jun 5 13:55:19 2009 +0400 comctl32/listview: Improve column scrolling. --- dlls/comctl32/listview.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 56b244d..dafb914 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4676,11 +4676,14 @@ static void LISTVIEW_ScrollColumns(LISTVIEW_INFO *infoPtr, INT nColumn, INT dx) rcCol.left = rcCol.right; /* adjust the other columns */ - for (nCol = nColumn; nCol < DPA_GetPtrCount(infoPtr->hdpaColumns); nCol++) + for (nCol = 0; nCol < DPA_GetPtrCount(infoPtr->hdpaColumns); nCol++) { lpColumnInfo = LISTVIEW_GetColumnInfo(infoPtr, nCol); - lpColumnInfo->rcHeader.left += dx; - lpColumnInfo->rcHeader.right += dx; + if (lpColumnInfo->rcHeader.left >= rcCol.left) + { + lpColumnInfo->rcHeader.left += dx; + lpColumnInfo->rcHeader.right += dx; + } } /* do not update screen if not in report mode */
participants (1)
-
Alexandre Julliard