Export (0) Print
Expand All

CB_GETCURSEL message

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

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

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

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

Reference
CB_SELECTSTRING
CB_SETCURSEL

 

 

Community Additions

ADD
Show:
© 2014 Microsoft