comctl32/trackbar: Update thumb unconditionally on TBM_SETTICFREQ.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-12-12 22:03:21 +03:00 committed by Alexandre Julliard
parent 458ddd59b2
commit a6aabe0159
2 changed files with 1 additions and 1 deletions

View File

@ -992,7 +992,6 @@ static void test_tic_settings(void)
SendMessageA(hWndTrackbar, TBM_GETTHUMBRECT, 0, (LPARAM)&rect);
SendMessageA(hWndTrackbar, TBM_SETTICFREQ, 1, 0);
SendMessageA(hWndTrackbar, TBM_GETTHUMBRECT, 0, (LPARAM)&rect1);
todo_wine
ok(!EqualRect(&rect, &rect1), "Unexpected thumb rectangle %s, previous %s\n",
wine_dbgstr_rect(&rect1), wine_dbgstr_rect(&rect));

View File

@ -1429,6 +1429,7 @@ TRACKBAR_SetTicFreq (TRACKBAR_INFO *infoPtr, WORD wFreq)
TRACKBAR_InvalidateAll(infoPtr);
}
TRACKBAR_UpdateThumb (infoPtr);
return 0;
}