description | title | ms.date | helpviewer_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|
Learn more about: Adding Items to the Header Control |
Adding Items to the Header Control |
11/04/2016 |
|
2e9a28b1-7302-4a93-8037-c5a4183e589a |
After creating your header control (CHeaderCtrl) in its parent window, add as many "header items" as you need: usually one per column.
-
Prepare an HD_ITEM structure.
-
Call CHeaderCtrl::InsertItem, passing the structure.
-
Repeat steps 1 and 2 for additional items.
For more information, see Adding an Item to a Header Control in the Windows SDK.