Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Calls the ImageList_GetIcon function to create an icon or cursor based on an image and mask in an image list.
HICON ImageList_ExtractIcon(
HINSTANCE hi,
HIMAGELIST himl,
int i
);
hi
Type: HINSTANCE
This parameter is not used and should always be zero.
himl
Type: HIMAGELIST
A handle to the image list.
i
Type: int
The index of the image.
Type: HICON
Returns the handle of the icon or cursor if successful, or NULL otherwise.
It is the responsibility of the calling application to destroy the icon returned from this function by using the DestroyIcon function.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today