ImageList_Duplicate function (commctrl.h)

Creates a duplicate of an existing image list.

Syntax

HIMAGELIST ImageList_Duplicate(
  HIMAGELIST himl
);

Parameters

himl

Type: HIMAGELIST

A handle to the image list to be duplicated. All information contained in the original image list for normal images is copied to the new image list. Overlay images are not copied.

Return value

Type: HIMAGELIST

Returns the handle to the new duplicate image list if successful, or NULL otherwise.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h
Library Comctl32.lib
DLL Comctl32.dll (version 4.71 or later)