# DM_LISTSETDATA

The DM_LISTSETDATA message is sent to the dialog manager to associate the user data with an element of a DI_COMBOBOX or DI_LISTBOX.

### Param1

The ID of the dialog item for which the data is associated.

### Param2

Pointer to a FarListItemData, structure describing the data added.

### Return

Size of the data added, or 0 if the data is incorrect or there is not enough memory.

### Controls

Control | Description
--- | ---
DI_LISTBOX | list
DI_COMBOBOX | combined list

### Remarks

See also:
DialogEx, DM_LISTGETDATA