Ask Learn
		
	
					Preview
					Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Finds the first string in a combo box list that begins with the specified string. You can use this macro or send the CB_FINDSTRING message explicitly.
int ComboBox_FindString(
   HWND    hwndCtl,
   int     indexStart,
   LPCTSTR lpszFind
);
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.
lpszFind
Type: LPCTSTR
The string to find.
Type: int
The index of the matching item, or CB_ERR if the search was unsuccessful.
For more information, see CB_FINDSTRING.
| 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 | 
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in