Nikolay Sivov : comctl32: Properly invalidate after setting thumb length.

Alexandre Julliard julliard at winehq.org
Mon May 13 15:02:44 CDT 2013


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat May 11 02:25:26 2013 +0400

comctl32: Properly invalidate after setting thumb length.

---

 dlls/comctl32/trackbar.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/trackbar.c b/dlls/comctl32/trackbar.c
index 4c04d5b..1d14a78 100644
--- a/dlls/comctl32/trackbar.c
+++ b/dlls/comctl32/trackbar.c
@@ -1297,9 +1297,11 @@ static inline LRESULT
 TRACKBAR_SetThumbLength (TRACKBAR_INFO *infoPtr, UINT iLength)
 {
     if (infoPtr->dwStyle & TBS_FIXEDLENGTH) {
+        /* We're not supposed to check if it's really changed or not,
+           just repaint in any case. */
         infoPtr->uThumbLen = iLength;
 	infoPtr->flags |= TB_THUMBSIZECHANGED;
-	InvalidateRect (infoPtr->hwndSelf, &infoPtr->rcThumb, FALSE);
+	TRACKBAR_InvalidateAll(infoPtr);
     }
 
     return 0;




More information about the wine-cvs mailing list