Header_SetItem
The Header_SetItem
macro sets the attributes of the specified item in a header control. You can
use this macro or explicitly send the HDM_SETITEM1MM6A2D message.
BOOL Header_SetItem(
hwndHD, |
|
index, |
|
phdi |
|
); |
|
Parameters
hwndHD
Handle to the
header control.
index
Index of the
item whose attributes are to be changed.
phdi
Pointer to an
HD_ITEM
Return Values
If the
operation succeeds, the return value is TRUE.
If the
operation fails, the return value is FALSE.
Remarks
The HDN_ITEMCHANGING
The Header_SetItem
macro is defined as follows:
#define Header_SetItem(hwndHD, index, phdi) \
(BOOL)SendMessage((hwndHD), HDM_SETITEM,
\
(WPARAM)(int)(index), (LPARAM)(const HD_ITEM FAR*)(phdi))
See Also