HDM_SETITEM

This message sets the specified item attributes in a header control. You can send this message explicitly or use the Header_SetItem macro.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related macro: Header_SetItem

Syntax

HDM_SETITEM wParam = (WPARAM)(int) index;
lParam = (LPARAM)(const HD_ITEM FAR*) phdi;

Parameters

iIndex

Current index of the item whose attributes are changed

phdItem

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

Return Values

Nonzero indicates success. Zero indicates failure.

See Also

HD_ITEM, HDN_ITEMCHANGED, HDN_ITEMCHANGING