Share via


Header_SetItem (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

#define Header_SetItem(hwndHD, i, phdi) \
                  (BOOL)SNDMSG((hwndHD), HDM_SETITEM, (WPARAM)(int)(i), \
                  (LPARAM)(const HD_ITEM FAR*)(phdi))

Parameters

  • hwndHD
    Handle to a header control.
  • i
    Current index of the item for which attributes are to be changed.
  • phdi
    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

Nonzero indicates success. Zero indicates failure.

Remarks

In Windows CE 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.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Header Controls Macros
HDM_SETITEM
HDITEM