From 0c3af0ba58c8519b76128e17a07b524d5670b7bc Mon Sep 17 00:00:00 2001 From: Krishna Murthy Date: Mon, 9 Aug 2004 22:57:43 +0000 Subject: [PATCH] Replaced LISTBOX_SetCaretIndex() with LISTBOX_MoveCaret() in LB_SELECTSTRING handler so that the caret moves to the index and item is highlighted. --- controls/listbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/listbox.c b/controls/listbox.c index 2043b22311a..29404e144e1 100644 --- a/controls/listbox.c +++ b/controls/listbox.c @@ -2795,7 +2795,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;