Commit 4770d57a authored by Michael Kaufmann's avatar Michael Kaufmann Committed by Alexandre Julliard

Scroll bar: Keep the caret blinking during scroll operations (only

handle WM_SYSTIMER messages that belong to the scroll bar).
parent 9c1b57c3
......@@ -1085,19 +1085,18 @@ void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt )
{
if (!GetMessageW( &msg, 0, 0, 0 )) break;
if (CallMsgFilterW( &msg, MSGF_SCROLLBAR )) continue;
switch(msg.message)
if (msg.message == WM_LBUTTONUP ||
msg.message == WM_MOUSEMOVE ||
(msg.message == WM_SYSTIMER && msg.wParam == SCROLL_TIMER))
{
case WM_LBUTTONUP:
case WM_MOUSEMOVE:
case WM_SYSTIMER:
pt.x = (short)LOWORD(msg.lParam) + xoffset;
pt.y = (short)HIWORD(msg.lParam) + yoffset;
SCROLL_HandleScrollEvent( hwnd, scrollbar, msg.message, pt );
break;
default:
}
else
{
TranslateMessage( &msg );
DispatchMessageW( &msg );
break;
}
if (!IsWindow( hwnd ))
{
......
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