XLL+ Class Library

CXlControlListBox::SetItemData

Sets a 32-bit value associated with the specified item in a list box

[C++]
int SetItemData(
   int nIndex,
   DWORD dwItemData
);

Parameters

nIndex

Specifies the zero-based index of the item in the list box.

dwItemData

Specifies the value to be associated with the item.

Return value

-1 if an error occurs.

Remarks

Sets a 32-bit value associated with the specified item in a list box.

Requirements

Header: xldialog.h

See Also

CXlControlListBox Class | CXlControlListBox Methods