Nikolay Sivov : comctl32/listview: Fix resizing grid drawing at right from rightmost column.

Alexandre Julliard julliard at winehq.org
Mon Apr 27 08:04:10 CDT 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sun Apr 26 12:39:36 2009 +0400

comctl32/listview: Fix resizing grid drawing at right from rightmost column.

---

 dlls/comctl32/listview.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 6301c8a..b6c6c2d 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9057,9 +9057,21 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
 		    }
 
 		    /* when shrinking the last column clear the now unused field */
-		    if (lpnmh->iItem == DPA_GetPtrCount(infoPtr->hdpaColumns) - 1 && dx < 0)
+		    if (lpnmh->iItem == DPA_GetPtrCount(infoPtr->hdpaColumns) - 1)
+		    {
+		        RECT right;
+
 		        rcCol.right -= dx;
 
+		        /* deal with right from rightmost column area */
+		        right.left = rcCol.right;
+		        right.top  = rcCol.top;
+		        right.bottom = rcCol.bottom;
+		        right.right = infoPtr->rcList.right;
+
+		        LISTVIEW_InvalidateRect(infoPtr, &right);
+		    }
+
 		    LISTVIEW_InvalidateRect(infoPtr, &rcCol);
 		}
 	    }




More information about the wine-cvs mailing list