DM_LISTGETITEM

Far Manager

DM_LISTGETITEM

The DM_LISTGETITEM message is sent to the dialog manager to retrieve a single item from a DI_COMBOBOX or DI_LISTBOX list.

Param1

The ID of the dialog item from which the elements should be retrieved.

Param2

Pointer to a FarListGetItem, structure that will contain the retrieved data.

Return

TRUE - data has been retrieved.
FALSE - error retrieving data.

Controls

ControlDescription
DI_LISTBOX list
DI_COMBOBOX combined list

Remarks

Before retrieving a list element, you should fill the FarListGetItemstructure. The FarListGetItem.ItemIndex field should contain the index of the element to be retrieved.
struct FarListGetItem List;
List.ItemIndex=Index;
Info.SendDlgMessage(hDlg,DM_LISTGETITEM,ID,(LONG_PTR)&List);
See also: