FarListInfo

Far Manager

FarListInfo

The FarListInfo structure is used to retrieve information about a DI_LISTBOX or DI_COMBOBOX control.
struct FarListInfo
{
  DWORD Flags;
  int ItemsNumber;
  int SelectPos;
  int TopPos;
  int MaxHeight;
  int MaxLength;
  DWORD Reserved[6];
};

Members

Flags
A combination of zero or more of the following flags (FARLISTINFOFLAGS enum):
FlagDescription
LINFO_SHOWNOBOX A DI_LISTBOX control is drawn without a frame when the DIF_LISTNOBOX flag is set.
LINFO_AUTOHIGHLIGHT Hotkeys will be assigned automatically, starting with the first item.
LINFO_REVERSEHIGHLIGHT Hotkeys will be assigned automatically, starting with the last item.
LINFO_WRAPMODE Trying to move the cursor above the first item or below the last item will move the cursor to the bottom or the top of the list, respectively.
LINFO_SHOWAMPERSAND Show ampersands (&). If this flag is not set, ampersands are used to define hot keys for list items.
ItemsNumber
Number of items in the list.
SelectPos
Index of the selected item in the list.
TopPos
Index of the topmost visible item in the list.
MaxHeight
Maximum height of the list.
MaxLength
Maximum length of a list item line.
Reserved
Reserved for future use.

Remarks

See also: