=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: shell32/autocomplete: Hide the AutoComplete listbox when auto-suggest is turned off.

Alexandre Julliard julliard at winehq.org
Mon Oct 15 16:15:26 CDT 2018


Module: wine
Branch: master
Commit: 51c5fb78170d2896fb6817ab399ebc6a2b5f9d32
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=51c5fb78170d2896fb6817ab399ebc6a2b5f9d32

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Fri Sep 28 14:44:09 2018 +0300

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

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/autocomplete.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index b229fed..5a8e03a 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;
 }




More information about the wine-cvs mailing list