CB_GETCURSEL

CB_GETCURSEL

wParam = 0; /* not used, must be zero */

lParam = 0; /* not used, must be zero */

An application sends a CB_GETCURSEL message to retrieve the index of the currently selected item, if any, in the list box of a combo box.

Parameters

This message has no parameters.

Return Value

The return value is the zero-based index of the currently selected item, or it is CB_ERR if no item is selected.

See Also

CB_SELECTSTRING, CB_SETCURSEL