Krishna Murthy <Krishna.Murthy@guptaworldwide.com>

Replaced LISTBOX_SetCaretIndex() with LISTBOX_MoveCaret() in
LB_SELECTSTRING handler so that the caret moves to the index and item
is highlighted.

svn path=/trunk/; revision=10498
This commit is contained in:
Thomas Bluemel 2004-08-11 10:37:06 +00:00
parent 6f267c1f3c
commit 5d4aa40ac6

View file

@ -2878,7 +2878,7 @@ static LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
HeapFree(GetProcessHeap(), 0, textW);
if (index != LB_ERR)
{
LISTBOX_SetCaretIndex( hwnd, descr, index, TRUE );
LISTBOX_MoveCaret( hwnd, descr, index, TRUE );
LISTBOX_SetSelection( hwnd, descr, index, TRUE, FALSE );
}
return index;