mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 22:02:18 +00:00
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:
parent
6f267c1f3c
commit
5d4aa40ac6
|
@ -2878,7 +2878,7 @@ static LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
|
||||||
HeapFree(GetProcessHeap(), 0, textW);
|
HeapFree(GetProcessHeap(), 0, textW);
|
||||||
if (index != LB_ERR)
|
if (index != LB_ERR)
|
||||||
{
|
{
|
||||||
LISTBOX_SetCaretIndex( hwnd, descr, index, TRUE );
|
LISTBOX_MoveCaret( hwnd, descr, index, TRUE );
|
||||||
LISTBOX_SetSelection( hwnd, descr, index, TRUE, FALSE );
|
LISTBOX_SetSelection( hwnd, descr, index, TRUE, FALSE );
|
||||||
}
|
}
|
||||||
return index;
|
return index;
|
||||||
|
|
Loading…
Reference in a new issue