I'm implementing a custom IEnumString to be used as a dataset for an IAutoComplete2 object.
The problem is that IAutoComplete2 appears to only call reset on my IEnumString when the first character is entered in an editbox and then relies on the fact that the dataset remains static (and doing local filtering after that) during subsequent key presses.
I tried to remove the IAutoComplete2 object and then immedietely creating a new one and attaching it to the control, but this lead to a crash in shell32.
Is this even possible?
When you want to reset the enumeration, you should
QueryInterface
yourIAutoComplete
interface forIAutoCompleteDropDown
and then callResetEnumerator
.Creation:
When you want to reset the enumeration: