Header_SetImageList macro (commctrl.h)

Assigns an image list to an existing header control. You can use this macro or send the HDM_SETIMAGELIST message explicitly.

Syntax

HIMAGELIST Header_SetImageList(
   HWND       hwnd,
   HIMAGELIST himl
);

Parameters

hwnd

Type: HWND

A handle to a header control.

himl

Type: HIMAGELIST

A handle to an image list.

Return value

Type: HIMAGELIST

Returns the handle to the image list previously assigned to the header control, or NULL if there is no previous image list.

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