LImageListControl::GetSelectedItems

Summary

Gets the currently selected items in the ImageList Control.

Syntax

#include "ltwrappr.h"

L_INT LImageListControl::GetSelectedItems(pItems=NULL)

Parameters

pLILITEM pItems

Pointer to a caller-allocated array of LILITEM structures to be filled with the selected items.

Returns

Value Meaning
>= 0 The number of selected items.
< 0 An error occurred. Refer to Return Codes.

Comments

The return value is the number of items pointed to by pItems.

You must allocate the array to be large enough to hold the selected items, and free the memory when it is no longer needed by your application.

If you pass NULL for pItems, the function will simply return the current number of selected items.

The LILITEM structure for each selected item will contain all attributes for the item. The lIndex member of the structure will contain the 0-based index of the item.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LImageListControl::GetSelectCount.

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.