Prev Next

ImageList_ExtractIcon info  Overview  Group

The ImageList_ExtractIcon function creates an icon or cursor based on an image and mask in an image list. ImageList_ExtractIcon is a macro that calls the ImageList_GetIcon function.

HICON ImageList_ExtractIcon(

    HINSTANCE hi,

    HIMAGELIST himl, 

    int i

   );

Parameters

hi
Ignored; set to zero.
himl 
Handle to the image list.
i
Index of the image.

Return Values

If the function succeeds, the return value is the handle of the icon or cursor.

If the function fails, the return value is NULL.

See Also

ImageList_GetIcon