# DM_LISTINSERT

The DM_LISTINSERT message is sent to the dialog manager to insert an element into a DI_COMBOBOX or DI_LISTBOX list.

### Param1

The ID of the dialog item in which the element is inserted.

### Param2

Pointer to a FarListInsertstructure specifying the element to insert.

### Return

New number of elements in the list, or -1 in case of an error during insert.

### Controls

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

### Remarks

### Example

See also:
DialogEx