[PATCH v2 4/7] shell32/autocomplete: Hide the AutoComplete listbox when auto-suggest is turned off

Gabriel Ivăncescu gabrielopcode at gmail.com
Fri Sep 28 06:44:09 CDT 2018


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/shell32/autocomplete.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index c25f81e..ca4227d 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -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;
 }
-- 
1.9.1




More information about the wine-devel mailing list