DM_LISTSET

Far Manager

DM_LISTSET

The DM_LISTSET message is sent to the dialog manager to replace the contents of a DI_COMBOBOX or DI_LISTBOX list with the given list of elements.

Param1

The ID of the dialog item in which the elements are replaced.

Param2

Pointer to a FarList structure specifying the new contents of the list.

Return

TRUE if the elements have been added successfully
FALSE in case of an error.

Controls

ControlDescription
DI_LISTBOX list
DI_COMBOBOX combined list

Remarks

Example

FarList List;
FarListItem *ListItems;
...

ListItems=new FarListItem[MenuItemsNumber];
List.ItemsNumber=MenuItemsNumber;
List.Items=ListItems;

...
Info.SendDlgMessage(hDlg,DM_LISTSET,0,(LONG_PTR)&List);
See also: