DM_LISTSETCURPOS

Far Manager

DM_LISTSETCURPOS

The DM_LISTSETCURPOS message is sent to dialog message to set the cursor position in DI_COMBOBOX or DI_LISTBOX.

Param1

The ID of the dialog item.

Param2

Param2 contains pointer to FarListPos structure.

Return

Modified cursor position in the list taking into account separators and unavailable items.

Controls

ControlDescription
DI_LISTBOX list
DI_COMBOBOX combined list

Remarks

Example

// set current position

RealPos=Info.SendDlgMessage(hDlg,DM_LISTSETCURPOS,ID,(LONG_PTR)&NewPos;);
See also: