[PATCH 15/17] shell32/autocomplete: Hide the AutoComplete listbox when auto-suggest is turned off or when it's disabled

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Sep 5 11:13:17 CDT 2018


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

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index c5bc582..c145dc0 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -521,6 +521,8 @@ static HRESULT WINAPI IAutoComplete2_fnEnable(
 
     TRACE("(%p)->(%s)\n", This, (fEnable)?"true":"false");
 
+    if (This->enabled && !fEnable && This->hwndListBox)
+        hide_listbox(This, This->hwndListBox);
     This->enabled = fEnable;
 
     return hr;
@@ -706,6 +708,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