IASPowerListBox::InsertAt

This method inserts an item at a specified index.

Syntax

HRESULT InsertAt ( long lIndex long lItemId long lType IDispatch **ppdispItem );

Parameters

lIndex
Long integer that contains the index for the new item.
lItemId
Long integer that contains the identifier of the item.
lType
Long integer that contains the item type. It is one of the following values:
ASFC_PWRLB_TYPE_COMMAND
Specifies a command.
ASFC_PWRLB_TYPE_EDIT
Specifies an edit box.
ASFC_PWRLB_TYPE_STRINGSPINNER
Specifies a string spinner.
ASFC_PWRLB_TYPE_INTSPINNER
Specifies an integer spinner.
ppdispItem
Pointer to the pointer to item’s IDispatch interface.

Return Values

NOERROR indicates success. E_OUTOFMEMORY indicates that the system is out of memory.