LB_GETCARETINDEX message

Retrieves the index of the item that has the focus in a multiple-selection list box. The item may or may not be selected.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

The return value is the zero-based index of the focused list box item, or 0 if no item has the focus.

Remarks

This message can also be used to get the index of the item that is currently selected in a single-selection list box.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

LB_SETCARETINDEX