user32: Call SCROLL_DrawScrollBar() to draw moving thumb in SCROLL_HandleScrollEvent().

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-07-06 15:07:21 +08:00 committed by Alexandre Julliard
parent 14f03e84d4
commit c3d8b39e9e
1 changed files with 2 additions and 2 deletions

View File

@ -863,8 +863,8 @@ static void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
SCROLL_TrackingPos );
if (!SCROLL_MovingThumb)
{
SCROLL_DrawMovingThumb(hdc, &rect, vertical, arrowSize, thumbSize);
SCROLL_MovingThumb = TRUE;
SCROLL_DrawScrollBar( hwnd, hdc, nBar, hittest, FALSE, TRUE );
}
}
else if (msg == WM_LBUTTONUP)
@ -893,8 +893,8 @@ static void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
SendMessageW( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL,
MAKEWPARAM( SB_THUMBTRACK, SCROLL_TrackingVal),
(LPARAM)hwndCtl );
SCROLL_DrawMovingThumb( hdc, &rect, vertical, arrowSize, thumbSize );
SCROLL_MovingThumb = TRUE;
SCROLL_DrawScrollBar( hwnd, hdc, nBar, hittest, FALSE, TRUE );
}
}
break;