LILEXPORTBITMAPLIST

typedef struct _LILEXPORTBITMAPLIST
{
   L_UINT
uStructSize;
   HBITMAPLIST
hList;
   L_INT
nStartIndex;
   L_INT
nItemsToExport;
} LILEXPORTBITMAPLIST, * pLILEXPORTBITMAPLIST;

The LILEXPORTBITMAPLIST structure contains information about the list of bitmaps to be exported from an ImageList control.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

hList

Handle to the bitmap list to be updated by the exported bitmaps.

 

If you passed NULL into this member to LImageListControl::ExportBitmapList function, it will be created internally and is going to contain all the exported bitmaps.

nStartIndex

Index of the first bitmap in the ImageList control to be exported.

nItemsToExport

Number of bitmaps to be exported starting from nStartIndex.

Note: (nStartIndex + nItemsToInsert) should not exceed number of items in the ImageList Control.

Comments

This structure is used by the LImageListControl::ExportBitmapList function.

After calling the LImageListControl::ExportBitmapList function and exporting the list of bitmaps successfully from the ImageList control, don’t try to free the bitmaps of the exported list hList, since it is going to have a reference to the original bitmaps and not a copy of them.