LB_SETSEL

This message is sent by an application to select a string in a multiple-selection list box.

LB_SETSEL wParam = (WPARAM)(BOOL) fSelect; 
lParam = (LPARAM)(UINT) index;

Parameters

  • fSelect
    Boolean that specifies how to set the selection. If set to TRUE, the string is selected and highlighted. If set to FALSE, the highlight is removed and the string is no longer selected.
  • index
    Zero-based index of the string to set. If index is –1, the selection is added to or removed from all strings, depending on the value of fSelect.

Return Values

LB_ERR indicates that an error has occurred.

Remarks

Use this message only with multiple-selection list boxes.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

LB_GETSEL, LB_SELITEMRANGE

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.