From 5d4aa40ac6c4616c2eba50828d18e998f7dd9764 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 11 Aug 2004 10:37:06 +0000 Subject: [PATCH] Krishna Murthy 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 --- reactos/lib/user32/controls/listbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/user32/controls/listbox.c b/reactos/lib/user32/controls/listbox.c index aa2ce0f5b13..fd71f67d939 100644 --- a/reactos/lib/user32/controls/listbox.c +++ b/reactos/lib/user32/controls/listbox.c @@ -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;