int InsertItem( int nPos, HDITEM* phdi );
Return Value
Index of the new item if successful; otherwise – 1.
Parameters
nPos
The zero-based index of the item to be inserted. If the value is zero, the item is inserted at the beginning of the header control. If the value is greater than the maximum value, the item is inserted at the end of the header control.
phdi
Pointer to an HDITEM structure that contains information about the item to be inserted.
Remarks
Inserts a new item into a header control at the specified index.
CHeaderCtrl Overview | Class Members | Hierarchy Chart
See Also CHeaderCtrl::DeleteItem, CHeaderCtrl::GetItem