Group: Windows Controls - Library: comctl32
How to view icons stored in executable files (Icon Viewer) - II
int ImageList_Add(
HIMAGELIST himl,
HBITMAP hbmImage,
HBITMAP hbmMask
);
DECLARE INTEGER ImageList_Add IN comctl32;
INTEGER himl,;
INTEGER hbmImage,;
INTEGER hbmMask himl Handle to the image list.
hbmImage Handle to the bitmap that contains the image or images. The number of images is inferred from the width of the bitmap.
hbmMask Handle to the bitmap that contains the mask. If no mask is used with the image list, this parameter is ignored.
Returns the index of the first new image if successful, or -1 otherwise.
The Usage shows how the image from an icon resource can be added to an Image List specified by its HIMAGELIST handle, THIS.himl.
See also: ImageList_Remove, ImageList_GetImageCount, LoadIcon, ExtractIcon, GetIconInfo, LoadImage.
Home