Header_InsertItemHeader_InsertItem*
*



Contents  *



Index  *Topic Contents
*Previous Topic: Header_GetUnicodeFormat
*Next Topic: Header_Layout

Header_InsertItem


int Header_InsertItem(
    hwndHD, 	
    index, 	
    phdi	
   );	

Inserts a new item into a header control. You can use this macro or send the HDM_INSERTITEM message explicitly.

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
Address of an HDITEM structure that contains information about the new item.

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))
 

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.