다음을 통해 공유


LB_SETSEL (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

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 Value

LB_ERR indicates that an error has occurred.

Remarks

Use this message only with multiple-selection list boxes.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

List Boxes Messages
LB_GETSEL
LB_SELITEMRANGE