Help Center

CHeader.SetItemmethod

Sets the attributes of the specified item in a header control.

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION SetItem (BYVAL hHeader AS HWND, BYVAL i AS DWORD, BYVAL phdi AS HDITEMW PTR) AS LONG
FUNCTION SetItem (BYVAL hHeader AS HWND, BYVAL i AS DWORD, BYREF hdi AS HDITEMW) AS LONG

Parameters

NameDescription
hHeaderThe handle of the header control.
iThe index of the item whose attributes are to be changed.
phdiA 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 upon success, or zero otherwise.

Description

Sets the attributes of the specified item in a header control.

Reference

  • Include file CHeader.inc
  • Defined in AfxNova/CHeader.inc:488
  • Documented in Windows/WIndows Controls/CHeader Class.md
  • Topic: CHeader Class