ComboBox_SelectString macro (windowsx.h)

Searches a list in a combo box for an item that begins with the characters in a specified string. If a matching item is found, the item is selected. You can use this macro or send the CB_SELECTSTRING message explicitly.

Syntax

void ComboBox_SelectString(
   hwndCtl,
   indexStart,
   lpszSelect
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

indexStart

Type: int

The zero-based index of the item before the first item to be searched. When the search reaches the bottom of the list, it continues searching from the top of the list back to the item specified by the indexStart parameter. If indexStart is –1, the entire list is searched from the beginning.

lpszSelect

Type: LPCTSTR

The string to find.

Return value

None

Remarks

For more information, see CB_SELECTSTRING.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h