This macro sets the attributes of the specified item in a header control. You can use this macro or send the HDM_SETITEM message explicitly.
At a Glance
Header file: | Commctrl.h |
Windows CE versions: | 1.0 and later (updated in 2.0) |
Related message: | HDM_SETITEM |
Syntax
BOOL Header_SetItem( hwndHD, index, phdi );
Parameters
hwndHD
Handle to a header control.
iIndex
Current index of the item for which attributes are to be changed.
phdItem
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 Values
Nonzero indicates success. Zero indicates failure.
Remarks
In Windows CE versions 2.0 and later, this macro supports item order and image list information. By using the iImage and iOrder members of the new HDITEM structure you pass in the phdi parameter, you can control the order in which items are displayed and specify images to appear with items.
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.
See Also