Keep the caret blinking during scroll operations [with patch]
Michael Kaufmann
hallo at michael-kaufmann.ch
Wed Nov 2 14:55:13 CST 2005
Changelog:
- Scroll bar: Keep the caret blinking during scroll operations (only
handle WM_SYSTIMER messages that belong to the scroll bar)
-------------- next part --------------
Index: dlls/user/scroll.c
===================================================================
RCS file: /home/wine/wine/dlls/user/scroll.c,v
retrieving revision 1.15
diff -u -r1.15 scroll.c
--- dlls/user/scroll.c 30 Oct 2005 19:05:42 -0000 1.15
+++ dlls/user/scroll.c 2 Nov 2005 20:34:07 -0000
@@ -1085,19 +1085,18 @@
{
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 ))
{
More information about the wine-patches
mailing list