IAutoComplete2::SetOptions method
Sets the current autocomplete options.
Syntax
HRESULT SetOptions(
[in] DWORD dwFlag
);
Parameters
- dwFlag [in]
-
Type: DWORD
One or more flags from the AUTOCOMPLETEOPTIONS enumeration that specify autocomplete options.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The TAB key is disabled by default because it is typically used to navigate from control to control, not within a control. If you set the ACO_USETAB flag in dwFlag, users can navigate to a string in the drop-down list by pressing the TAB key. If the drop-down list is closed, the TAB key allows the user to navigate from control to control, as usual. The user can close the drop-down list by pressing the ESC key.
Requirements
|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
DLL |
|
See also