Ordering Items in the Header Control
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Ordering Items in the Header Control.
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.