Partager via


CImageList::Read

Call this function to read an image list from an archive.

BOOL Read( 
   CArchive* pArchive  
);

Parameters

  • pArchive
    A pointer to a CArchive object from which the image list is to be read.

Return Value

Nonzero if successful; otherwise 0.

Example

// Open the archive to load the image list from.
CFile   myFile(_T("myfile.data"), CFile::modeRead);
CArchive ar(&myFile, CArchive::load);
CImageList myImgList;

// Load the image list from the archive.
myImgList.Read(&ar);   

Requirements

Header: afxcmn.h

See Also

Reference

CImageList Class

Hierarchy Chart

CImageList::Write