shell32/autocomplete: Move the auto-suggest listbox along with the edit control.

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-11-16 17:38:04 +02:00 committed by Alexandre Julliard
parent 7ac4c0ea8c
commit 2c03e0c67d
1 changed files with 9 additions and 0 deletions

View File

@ -611,6 +611,15 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
/* Reset the enumerator if it's not visible anymore */
if (!IsWindowVisible(hwnd)) free_enum_strs(This);
break;
case WM_WINDOWPOSCHANGED:
{
WINDOWPOS *pos = (WINDOWPOS*)lParam;
if ((pos->flags & (SWP_NOMOVE | SWP_NOSIZE)) != (SWP_NOMOVE | SWP_NOSIZE) &&
This->hwndListBox && IsWindowVisible(This->hwndListBox))
show_listbox(This);
break;
}
case WM_KEYDOWN:
return ACEditSubclassProc_KeyDown(This, hwnd, uMsg, wParam, lParam);
case WM_CHAR: