Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Selects an item in a multiple-selection list box and, if necessary, scrolls the item into view.
wParam
Specifies how to set the selection. If this parameter is TRUE, the item is selected and highlighted; if it is FALSE, the highlight is removed and the item is no longer selected.
lParam
Specifies the zero-based index of the item to set. If this parameter is -1, the selection is added to or removed from all items, depending on the value of wParam, and no scrolling occurs.
If an error occurs, the return value is LB_ERR.
Use this message only with multiple-selection list boxes.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
Reference
Please sign in to use this experience.
Sign in