This message selects a string in the list box of a combo box and scrolls it into view if the list box is visible, and the text in the combo-box edit control or static-text control is changed to reflect the new selection. When the new string is selected, the list box removes the highlight from the previously selected string.
Parameter |
Description |
wParam |
Contains the index of the string that is to be selected. If wParam is –1, the list box is set to have no selection. |
|
lParam |
Is not used. |
If the index specified by wParam is not valid, the return value is CB_ERR and the current selection is not changed.