WinXComboBox_GetSelection


index = WinXComboBox_GetSelection (hCombo)

Gets the index of the currently selected item in the combo box.

Parameter Description
hCombo The handle to the combo box to get the selection for

Returns

The o based index of the item which is currently selected, or $$CB_ERR if there are no items selected.

Remarks

none

Examples

'print the index of the currently selected item
PRINT WinXComboBox_GetSelection (hCombo)

Related Links

WinXAddComboBox
WinXComboBox_SetSelection
WinXComboBox_GetEditText$