Working with a 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 Working with a Header Control.

The easy way to use a header control (CHeaderCtrl) is in conjunction with a list control; see Using CListCtrl later in this topic family. You can also use a header control by itself. MFC calls InitCommonControls for you. The key tasks are as follows:

If the header control object is embedded in a parent view or dialog class, the control is destroyed when the parent is destroyed.

See Also

Using CHeaderCtrl
Controls