comctl32: Properly invalidate after setting thumb length.
This commit is contained in:
parent
e95b9d2f06
commit
a24808326d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue