shell32/autocomplete: Implement ResetEnumerator.

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-07 17:14:15 +02:00 committed by Alexandre Julliard
parent b6d8ea6253
commit 7348ffd9bd
1 changed files with 8 additions and 4 deletions

View File

@ -24,8 +24,6 @@
- implement ACO_SEARCH style
- implement ACO_FILTERPREFIXES style
- implement ACO_RTLREADING style
- implement ResetEnumerator
*/
#include "config.h"
@ -1041,9 +1039,15 @@ static HRESULT WINAPI IAutoCompleteDropDown_fnResetEnumerator(
{
IAutoCompleteImpl *This = impl_from_IAutoCompleteDropDown(iface);
FIXME("(%p): stub\n", This);
TRACE("(%p)\n", This);
return E_NOTIMPL;
if (This->initialized)
{
free_enum_strs(This);
if ((This->options & ACO_AUTOSUGGEST) && IsWindowVisible(This->hwndListBox))
autocomplete_text(This, This->hwndEdit, autoappend_flag_displayempty);
}
return S_OK;
}
/**************************************************************************