Hide the caret only on the first WM_KEYDOWN.

This commit is contained in:
Francois Gouget 2000-10-31 01:03:15 +00:00 committed by Alexandre Julliard
parent 0f5231d980
commit eecb40ec43

View file

@ -1159,7 +1159,9 @@ LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
/* if key event is received, the scrollbar has the focus*/ /* if key event is received, the scrollbar has the focus*/
case WM_KEYDOWN: case WM_KEYDOWN:
HideCaret(hwnd); /*hide caret to prevent flicker*/ /* hide caret on first KEYDOWN to prevent flicker */
if ((lParam & 0x40000000)==0)
HideCaret(hwnd);
SCROLL_HandleKbdEvent( hwnd, wParam ); SCROLL_HandleKbdEvent( hwnd, wParam );
break; break;