ImageList_SetOverlayImageImageList_SetOverlayImage*
*Contents  *Index  *Topic Contents
*Previous Topic: ImageList_SetImageCount
*Next Topic: ImageList_Write

ImageList_SetOverlayImage


BOOL ImageList_SetOverlayImage(
    HIMAGELIST himl, 	
    int iImage, 	
    int iOverlay	
   );	

Adds a specified image to the list of images to be used as overlay masks. An image list can have up to four overlay masks in version 4.70 and earlier and up to 15 in version 4.71. The function assigns an overlay mask index to the specified image.

himl
Handle to the image list.
iImage
Zero-based index of an image in the himl image list. This index identifies the image to use as an overlay mask.
iOverlay
One-based index of the overlay mask.

An overlay mask is an image drawn transparently over another image. To draw an overlay mask over an image, call the ImageList_Draw or ImageList_DrawEx function. The fStyle parameter of these functions can use the INDEXTOOVERLAYMASK macro to specify an overlay mask index.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.