Header_SetItem macro

Sets the attributes of the specified item in a header control. You can use this macro or send the HDM_SETITEM message explicitly.

Syntax


BOOL Header_SetItem(
   HWND     hwndHD,
   int      iIndex,
   LPHDITEM phdItem
);

Parameters

hwndHD

Type: HWND

A handle to a header control.

iIndex

Type: int

The current index of the item whose attributes are to be changed.

phdItem

Type: LPHDITEM

A pointer to an HDITEM structure that contains item information. When this message is sent, the mask member of the structure must be set to indicate which attributes are being set.

Return value

Returns nonzero if successful, or zero otherwise.

Remarks

The HDITEM structure that supports this macro supports item order and image list information. By using these members, you can control the order in which items are displayed and specify images to appear with items.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Show: