LB_SETITEMDATA

This message sets a 32-bit value associated with the specified item in a list box. If the item is in an owner-draw list box created without the LBS_HASSTRINGS style, this message replaces the 32-bit value that was contained in the lParam parameter of the LB_ADDSTRING or LB_INSERTSTRING message that added the item to the list box.

Parameters

wParam

Contains an index to the item.

lParam

Contains the new value to be associated with the item.

Return Value

The return value is LB_ERR if an error occurs.

See Also

LB_ADDSTRING, LB_INSERTSTRING