comctl32/trackbar: Use correct state id for the focused thumb.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-03-04 16:47:53 +08:00 committed by Alexandre Julliard
parent bde397d220
commit 52cdd22b52
1 changed files with 2 additions and 0 deletions

View File

@ -717,6 +717,8 @@ TRACKBAR_DrawThumb (TRACKBAR_INFO *infoPtr, HDC hdc)
stateId = TUS_PRESSED;
else if (infoPtr->flags & TB_THUMB_HOT)
stateId = TUS_HOT;
else if (infoPtr->flags & TB_IS_FOCUSED)
stateId = TUS_FOCUSED;
else
stateId = TUS_NORMAL;