CImageList::Copy

BOOL Copy( int iDst, int iSrc, UINT uFlags = ILCF_MOVE );

BOOL Copy( int iDst, CImageList* pSrc, int iSrc, UINT uFlags = ILCF_MOVE );

Return Value

Nonzero if successful; otherwise zero.

Parameters

iDst

The zero-based index of the image to be used as the destination of the copy operation.

iSrc

The zero-based index of the image to be used as the source of the copy operation.

uFlags

The bit flag value that specifies the type of copy operation to be made. This parameter can be one of the following values:

Value Meaning
ILCF_MOVE The source image is copied to the destination image's index. This operation results in multiple instances of a given image. ILCF_MOVE is the default.
ILCF_SWAP The source and destination images exchange positions within the image list.

pSrc

A pointer to a CImageList object that is the target of the copy operation.

Remarks

This member function implements the behavior of the Win32 function ImageList_Copy, as described in the Platform SDK.

CImageList OverviewClass MembersHierarchy Chart