Commit e95b9d2f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32: Update thumb size on WM_SIZE if it's not fixed, invalidate after resize.

parent af59f194
...@@ -1573,9 +1573,15 @@ TRACKBAR_SetFocus (TRACKBAR_INFO *infoPtr) ...@@ -1573,9 +1573,15 @@ TRACKBAR_SetFocus (TRACKBAR_INFO *infoPtr)
static LRESULT static LRESULT
TRACKBAR_Size (TRACKBAR_INFO *infoPtr) TRACKBAR_Size (TRACKBAR_INFO *infoPtr)
{ {
TRACKBAR_CalcChannel (infoPtr); if (infoPtr->dwStyle & TBS_FIXEDLENGTH)
TRACKBAR_UpdateThumb (infoPtr); {
TRACKBAR_CalcChannel(infoPtr);
TRACKBAR_UpdateThumb(infoPtr);
}
else
TRACKBAR_InitializeThumb(infoPtr);
TRACKBAR_AlignBuddies (infoPtr); TRACKBAR_AlignBuddies (infoPtr);
TRACKBAR_InvalidateAll(infoPtr);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment