ListBox_GetSelItems macro (windowsx.h)

Gets the indexes of selected items in a multiple-selection list box. You can use this macro or send the LB_GETSELITEMS message explicitly.

Syntax

void ListBox_GetSelItems(
   hwndCtl,
   cItems,
   lpItems
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

cItems

Type: int

The maximum number of selected items whose item numbers are to be placed in the buffer.

lpItems

Type: int*

A pointer to a buffer large enough for the number of integers specified by cItems.

Return value

None

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h