[PATCH 1/2] shell32/autocomplete: Hide the listbox when the text is changed programmatically

Gabriel Ivăncescu gabrielopcode at gmail.com
Tue Nov 13 05:04:05 CST 2018


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---

This matches Windows behavior (see tests).

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

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 705b28b..6d8988b 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -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:
-- 
2.19.1




More information about the wine-devel mailing list