Header_InsertItem
This macro inserts a new item into a header control. You can use this macro or send the HDM_INSERTITEM message explicitly.
int Header_InsertItem( hwndHD, index, phdi );
Parameters
- hwndHD
Handle to the header control. - index
Index of the item after which the new item is to be inserted. The new item is inserted at the end of the header control if index is greater than or equal to the number of items in the control. If index is zero, the new item is inserted at the beginning of the header control. - phdi
Pointer to an HDITEM structure that contains information about the new item.
Return Values
The index of the new item indicates success. –1 indicates failure.
Remarks
The Header_InsertItem macro is defined as follows:
#define Header_InsertItem(hwndHD, index, phdi)\
(int)SendMessage((hwndHD), HDM_INSERTITEM, (WPARAM)(int)(index), \
(LPARAM)(const LPHDITEM)(phdi))
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 1.0 and later | Commctrl.h | Commctrl.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.