Share via


CImageList::GetSafeHandle

Call this function to retrieve the m_hImageList data member.

HIMAGELIST GetSafeHandle( ) const;

Return Value

A handle to the attached image list; otherwise NULL if no object is attached.

Example

// Get the safe handle to the image list.
HIMAGELIST hImageList = m_myImageList.GetSafeHandle();

Requirements

Header: afxcmn.h

See Also

Reference

CImageList Class

Hierarchy Chart

CImageList::Attach

CImageList::Detach

CImageList::m_hImageList

Other Resources

CImageList Members