Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.22 KB

File metadata and controls

34 lines (27 loc) · 1.22 KB
title Adding Items to the Header Control | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
controls [MFC], header
CHeaderCtrl class [MFC], adding items
header controls [MFC], adding items to
ms.assetid 2e9a28b1-7302-4a93-8037-c5a4183e589a
caps.latest.revision 11
author mikeblome
ms.author mblome
manager ghogen

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

Using CHeaderCtrl
Controls