Graphisoft®

Dialog ManagerVersion: 2.0

ListBox::GetSelectedItems

Retrieves the indices of the selected list box items.

short GetSelectedItems (
    short *             selItems,
    short               maxCount
) const;

Parameters

selItems
Output parameter: The selected list items. This parameter cannot be NULL.
maxCount
The maximal number of items that can be returned in the buffer.

Return Value

The number of the returned items. If the number of the selected items is greater than maxCount, only the first maxCount items are returned in selItems. If selItems is NULL, the function returns zero.

Description

It is the task of the application to allocate the buffer for the indices of the selected items. Use the GetSelectedCount method to determine the size of the necessary buffer.