win32gui.ImageList_Add

int = ImageList_Add(himl, hbmImage , hbmMask )

Adds an image or images to an image list.

Parameters

himl : int

Handle to the image list.

hbmImage : PyGdiHANDLE

Handle to the bitmap that contains the image or images. The number of images is inferred from the width of the bitmap.

hbmMask : PyGdiHANDLE

Handle to the bitmap that contains the mask. If no mask is used with the image list, this parameter is ignored

Return Value

Returns the index of the first new image if successful, or -1 otherwise.