shell32/autocomplete: Hide the AutoComplete listbox when auto-suggest is turned off.

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-09-28 14:44:09 +03:00 committed by Alexandre Julliard
parent 5aa7dbf4d8
commit 51c5fb7817
1 changed files with 2 additions and 0 deletions

View File

@ -775,6 +775,8 @@ static HRESULT WINAPI IAutoComplete2_fnSetOptions(
if ((This->options & ACO_AUTOSUGGEST) && This->hwndEdit && !This->hwndListBox)
create_listbox(This);
else if (!(This->options & ACO_AUTOSUGGEST) && This->hwndListBox)
hide_listbox(This, This->hwndListBox);
return hr;
}