共用方式為


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

Concepts

CImageList Class

CImageList Members

Hierarchy Chart

CImageList::Attach

CImageList::Detach

CImageList::m_hImageList