Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 2.59 KB

File metadata and controls

74 lines (57 loc) · 2.59 KB
title Using CHeaderCtrl | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
CHeaderCtrl
dev_langs
C++
helpviewer_keywords
header controls, using
CHeaderCtrl class
ms.assetid fb3e512b-9539-43c4-a7e7-3fafd6d0706e
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Using CHeaderCtrl

Use a header control, represented by class CHeaderCtrl, to display column headers for a columnar list. For example, a header control would be useful for implementing column controls in a spreadsheet.

The header control is usually divided into parts, called "header items," each bearing a title for the associated column of text or numbers. Depending on the styles you set, you can provide a number of direct ways for users to manipulate the header items.

Note

CListCtrl provides an embedded header control, and CListView encapsulates CListCtrl in an MFC class. In general, think of using CHeaderCtrl to label lists that you intend to draw yourself.

What do you want to know more about

See Also

Controls