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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

LB_SETCARETINDEX

 

 

Community Additions

ADD
Show:
© 2014 Microsoft