ImageList_Add (Windows CE 5.0)
This function adds an image or images to an image list.
intWINAPIImageList_Add(HIMAGELISThiml, HBITMAPhbmImage, HBITMAPhbmMask );
Parameters
himl
[in] Handle to the image list.hbmImage
[in] Handle to the bitmap that contains the image or images. The number of images is inferred from the width of the bitmap.hbmImage can be a handle to either a device-independent bitmap (DIB) or a device-dependent bitmap (DDB) bitmap.
hbmMask
[in] Handle to the bitmap that contains the mask. If no mask is used with the image list, this parameter is ignored.
Return Values
The index of the first new image indicates success. –1 indicates failure.
Remarks
The ImageList_Add function copies the bitmap to an internal data structure. Be sure to use the DeleteObject function to delete hbmImage and hbmMask after the function returns.
Support for DIBs is available only in Windows CE 5.0 and later..
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.
Link Library: Commctrl.lib, Imgctl.lib.
See Also
CreateBitmap | CreateDIBSection | DeleteObject | ImageList_Create | ImageList_Remove
Send Feedback on this topic to the authors