typedef struct _LILITEM 
   L_UINT uStructSize; 
   L_UINT32 uMask; 
   pBITMAPHANDLE pBitmap; 
   L_UINT uBitmapStructSize; 
   L_TCHAR * pText; 
   L_INT32 lData; 
   L_BOOL bSelected; 
   L_INT32 lIndex; 
   L_TCHAR * pTextExt; /* the item's extended text */ 

The LILITEM structure contains information about a specific item in the image list.

Member Description
uStructSize Size of this structure in bytes. Use the sizeof() macro to calculate this value.
uMask Mask for getting and setting the item.
pBitmap Pointer to a bitmap handle that references the items bitmap.
uBitmapStructSize Size of the structure pointed to by pBitmap, for versioning. Use sizeof(LILITEM).
pText Character string that contains the items text.
lData Items user data.
bSelected Flag that indicates whether or not the item is selected. Possible values are:
  Value Meaning
  TRUE The item is selected.
  FALSE The item is not selected.
lIndex Index of the specified item. This index is zero-based.
pTextExt Character string that contains the items extra text.


Possible values for uMask are:




[0x01] Get/set the bitmap.


[0x02] Get/set the text.


[0x04] Get/set the data.


[0x08] Get/set the selected flag.


[0x10] Get/set the extra text.

This structure is used by the LImageListControl::GetItem, LImageListControl::GetSelectedItems, LImageListControl::Insert, LImageListControl::Update, and LImageListControl::SortExt functions.

pTextExt can be used to store an extra text string for the item. For example, you can store the filename in pText (which gets displayed in the control), and the fully qualified path and filename in pTextExt.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C++ Class Library Help