Partager via


CImageList::Write

Call this function to write an image list object to an archive.

BOOL Write( 
   CArchive* pArchive  
);

Parameters

  • pArchive
    A pointer to a CArchive object in which the image list is to be stored.

Return Value

Nonzero if successful; otherwise 0.

Example

// Open the archive to store the image list in.
CFile   myFile(_T("myfile.data"), CFile::modeCreate | CFile::modeWrite);
CArchive ar(&myFile, CArchive::store);

// Store the image list in the archive.
m_myImageList.Write(&ar);

Requirements

Header: afxcmn.h

See Also

Reference

CImageList Class

Hierarchy Chart

CImageList::Read