ImageList_Copy

The ImageList_Copy function copies images within a given imagelist.

Syntax

BOOL ImageList_Copy(HIMAGELIST himlDst, int iDst, HIMAGELIST himlSrc, int iSrc, UINT uFlags);

At a Glance

Header file: Commctrl.h
Component: Imgctl
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

himlDst and himlSrc
Handle to an imagelist that is the target of the copy operation. Both parameters must be identical.
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
Bit flag value that specifies the type of copy operation to be made. This parameter can be one of the following values:
ILCF_MOVE
The source image is copied to the destination image's index. This operation results in multiple instances of a given image.
ILCF_SWAP
The source and destination images exchange positions within the image list.

Return Values

Returns nonzero if successful and zero otherwise.