Once you've added items to a header control, you can manipulate or get information about their order with the following functions:
- CHeaderCtrl::GetOrderArray and CHeaderCtrl::SetOrderArray - Retrieves and sets the left-to-right order of header items. 
- 
Retrieves the index value for a specific header item. 
In addition to the previous member functions, the HDS_DRAGDROP style allows the user to drag and drop header items within the header control. For more information, see Providing Drag-and-Drop Support for Header Items.