WinXComboBox_AddItem


index = WinXComboBox_AddItem (hCombo, index, indent, item$, iImage, iSelImage)

Adds an item to a combo box.

Parameter Description
hCombo The handle to the combo box to add the item to
index The 0 based index at which to insert the item. Use -1 to add the item to the end of the list
indent The number of indents for the item, 0 for none
item$ The string representing the item
iImage The 0 based index to the image in the combo box's image list to use for this item
iSelImage The 0 based index to the image in the combo bo's image list to display when this item is selected

Returns

The 0 based index at which the item was inserted or -1 on fail

Remarks

The iImage and iSelImage parameters are ignored if the combo box doesn't have an image list.

Examples

'add an item to a combo box
WinXComboBox_AddItem (hCombo, -1, 0, "An item with no images", -1, -1)

Related Links

WinXAddComboBox
WinXComboBox_RemoveItem