共用方式為


Adding Items to the Header Control

After creating your header control (CHeaderCtrl) in its parent window, add as many "header items" as you need: usually one per column.

To add a header item

  1. Prepare an HD_ITEM structure.

  2. Call CHeaderCtrl::InsertItem, passing the structure.

  3. Repeat steps 1 and 2 for additional items.

For more information, see Adding an Item to a Header Control in the Windows SDK.

See Also

Concepts

Using CHeaderCtrl

Controls (MFC)