static CImageList* PASCAL FromHandlePermanent( HIMAGELIST hImageList );
Return Value
A pointer to a CImageList object if successful; otherwise NULL.
Parameters
hImageList
Specifies the image list.
Remarks
Returns a pointer to a CImageList object when given a handle to an image list. If a CImageList object is not attached to the handle, NULL is returned.
Example
// The handle of my image list.
extern HIMAGELIST hmyImageList;
// Convert the HIMAGELIST to a CImageList*.
ASSERT(hmyImageList != NULL);
CImageList* pmyImageList = CImageList::FromHandlePermanent(hmyImageList);
ASSERT(pmyImageList != NULL);
CImageList Overview | Class Members | Hierarchy Chart
See Also CImageList::FromHandle