diff --git "a/dll/win32/comctl32/theme_scrollbar.c" "b/dll/win32/comctl32/theme_scrollbar.c" index bb42267bf21..b4bb4704bf4 100644 --- "a/dll/win32/comctl32/theme_scrollbar.c" +++ "b/dll/win32/comctl32/theme_scrollbar.c" @@ -259,7 +259,6 @@ static void redraw_part(HWND hwnd, HTHEME theme, enum SCROLL_HITTEST part) static void scroll_event(HWND hwnd, HTHEME theme, UINT msg, POINT pt) { enum SCROLL_HITTEST hittest; - TRACKMOUSEEVENT tme; if (GetWindowLongW(hwnd, GWL_STYLE) & (SBS_SIZEGRIP | SBS_SIZEBOX)) return; @@ -280,17 +279,8 @@ static void scroll_event(HWND hwnd, HTHEME theme, UINT msg, POINT pt) break; } - tme.cbSize = sizeof(tme); - tme.dwFlags = TME_QUERY; - TrackMouseEvent(&tme); - - if (!(tme.dwFlags & TME_LEAVE) || tme.hwndTrack != hwnd) { - tme.dwFlags = TME_LEAVE; - tme.hwndTrack = hwnd; - TrackMouseEvent(&tme); - } - - if (tracking_win != hwnd && msg == WM_MOUSELEAVE) { + if (tracking_win != hwnd || msg != WM_LBUTTONDOWN) + { redraw_part(hwnd, theme, SCROLL_NOWHERE); return; }