Rediger

Del via


CBEM_INSERTITEM message

Inserts a new item in a ComboBoxEx control.

Parameters

wParam

Must be zero.

lParam

A pointer to a COMBOBOXEXITEM structure that contains information about the item to be inserted. When the message is sent, the iItem member must be set to indicate the zero-based index at which to insert the item. To insert an item at the end of the list, set the iItem member to -1.

Return value

Returns the index at which the new item was inserted if successful, or -1 otherwise.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h
Unicode and ANSI names
CBEM_INSERTITEMW (Unicode) and CBEM_INSERTITEMA (ANSI)