shell32/autocomplete: Hide the listbox when the text is changed programmatically.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2018-11-13 13:04:05 +02:00 committed by Alexandre Julliard
parent ead7e637c0
commit 4cac7da8b5

View file

@ -627,6 +627,9 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
? autoappend_flag_yes : autoappend_flag_no);
return ret;
case WM_SETTEXT:
if (This->options & ACO_AUTOSUGGEST)
hide_listbox(This, This->hwndListBox, TRUE);
break;
case WM_CUT:
case WM_CLEAR:
case WM_UNDO: