Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

LImageListControl::GetSelectedItems

Show in webframe

#include "ltwrappr.h"

L_INT LImageListControl::GetSelectedItems(pItems=NULL)

pLILITEM pItems;

pointer to a structure to be filled with the selected items */

Gets the currently selected items in the ImageList Control.

Parameter

Description

pItems

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

Returns

>= 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 LILITEMstructure 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

LTDIS
LTFIL
LTIMG

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

LImageListControl::ExportBitmapList, LImageListControl::ImportBitmapList, LImageListControl::SortExt. Class Members

Topics:

Using the ImageList Control

Example

For an example, refer to LImageListControl::GetSelectCount.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.