ComboBox_InsertString macro (windowsx.h)
Adds a string to a list in a combo box at the specified location. You can use this macro or send the CB_INSERTSTRING message explicitly.
Syntax
void ComboBox_InsertString(
hwndCtl,
index,
lpsz
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
index
Type: int
The zero-based index at which to insert the string, or –1 to add it to the end of the list.
lpsz
Type: LPCSTR
The string to add.
Return value
None
Remarks
For more information, see CB_INSERTSTRING.
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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for