Prev Next
The Header_InsertItem macro inserts a new item into a header control.
You can use this macro or explicitly send the HDM_INSERTITEM
message.
int Header_InsertItem(
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 HD_ITEM structure that
contains information about the new item.
Return Values
If the operation succeeds, the return value is the index of the new item.
If the operation fails, the return value is -
1.
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 HD_ITEM FAR*)(phdi))
See Also
HDM_INSERTITEM, HD_ITEM
file: /Techref/os/win/api/win32/mac/src/mac00_20.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/12/2 12:00,
|
| ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/mac/src/mac00_20.htm"> Header_InsertItem</A> |
Did you find what you needed?
|
.
|