comctl32: Properly invalidate after setting thumb length.

This commit is contained in:
Nikolay Sivov 2013-05-11 02:25:26 +04:00 committed by Alexandre Julliard
parent e95b9d2f06
commit a24808326d
1 changed files with 3 additions and 1 deletions

View File

@ -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;