Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 1.99 KB

nf-windowsx-listbox_setsel.md

File metadata and controls

73 lines (59 loc) · 1.99 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:windowsx.ListBox_SetSel
ListBox_SetSel macro (windowsx.h)
Selects or deselects an item in a multiple-selection list box. You can use this macro or send the LB_SETSEL message explicitly.
ListBox_SetSel
ListBox_SetSel macro [Windows Controls]
_win32_ListBox_SetSel
_win32_ListBox_SetSel_cpp
controls.ListBox_SetSel
controls._win32_ListBox_SetSel
windowsx/ListBox_SetSel
controls\ListBox_SetSel.htm
Controls
VS|Controls|~\controls\listboxes\listboxreference\listboxmacros\listbox_setsel.htm
12/05/2018
ListBox_SetSel, ListBox_SetSel macro [Windows Controls], _win32_ListBox_SetSel, _win32_ListBox_SetSel_cpp, controls.ListBox_SetSel, controls._win32_ListBox_SetSel, windowsx/ListBox_SetSel
windowsx.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
ListBox_SetSel
windowsx/ListBox_SetSel
c++
APIRef
kbSyntax
HeaderDef
Windowsx.h
ListBox_SetSel

ListBox_SetSel macro

-description

Selects or deselects an item in a multiple-selection list box. You can use this macro or send the LB_SETSEL message explicitly.

-parameters

-param hwndCtl

Type: HWND

A handle to the control.

-param fSelect

Type: BOOL

TRUE to select the item, or FALSE to deselect it.

-param index

Type: int

The zero-based index of the item.