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 | |
); |
If the function succeeds, the return value is the handle of the icon or cursor.
If the function fails, the return value is NULL.