CImageList::Write

BOOL Write( CArchive* pArchive );

Return Value

Nonzero if successful; otherwise 0.

Parameters

pArchive

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

Remarks

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

Example

// The pointer to my image list.
extern CImageList* pmyImageList;

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

// Store the image list in the archive.
pmyImageList->Write(&ar);

CImageList OverviewClass MembersHierarchy Chart

See Also   CImageList::Read