ChangeSet ID: 21067 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/03 03:51:42
Modified files: dlls/user : scroll.c
Log message: Michael Kaufmann hallo@michael-kaufmann.ch Scroll bar: Keep the caret blinking during scroll operations (only handle WM_SYSTIMER messages that belong to the scroll bar).
Patch: http://cvs.winehq.org/patch.py?id=21067
Old revision New revision Changes Path 1.15 1.16 +6 -7 wine/dlls/user/scroll.c
Index: wine/dlls/user/scroll.c diff -u -p wine/dlls/user/scroll.c:1.15 wine/dlls/user/scroll.c:1.16 --- wine/dlls/user/scroll.c:1.15 3 Nov 2005 9:51:42 -0000 +++ wine/dlls/user/scroll.c 3 Nov 2005 9:51:42 -0000 @@ -1085,19 +1085,18 @@ void SCROLL_TrackScrollBar( HWND hwnd, I { 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 )) {