/// <summary> /// This is the method that binds the custom source with the IAutoComplete interface.The "hWndEdit" is the handle /// to the edit Control and the "options' are the options that need to be set in the AUTOCOMPLETE mode. /// </summary> public bool Bind(HandleRef edit, Shell32.AUTOCOMPLETEOPTIONS options) { if (_autoCompleteObject2 == null) { return(false); } if (!_autoCompleteObject2.SetOptions(options).Succeeded()) { return(false); } HRESULT hr = _autoCompleteObject2.Init(edit.Handle, (IEnumString)this, null, null); GC.KeepAlive(edit.Wrapper); return(hr.Succeeded()); }
public HRESULT SetOptions(Shell32.AUTOCOMPLETEOPTIONS dwFlag) { return(((delegate * unmanaged <IntPtr, Shell32.AUTOCOMPLETEOPTIONS, HRESULT>)(*(*(void ***)_wrappedInstance + 5))) (_wrappedInstance, dwFlag)); }