共用方式為


CTreeCtrl Class

Provides the functionality of the Windows common tree view control.

class CTreeCtrl : public CWnd

Remarks

A "tree view control" is a window that displays a hierarchical list of items, such as the headings in a document, the entries in an index, or the files and directories on a disk. Each item consists of a label and an optional bitmapped image, and each item can have a list of subitems associated with it. By clicking an item, the user can expand and collapse the associated list of subitems.

This control (and therefore the CTreeCtrl class) is available only to programs running under Windows 98 and Windows NT version 4 and later.

For more information on using CTreeCtrl, see:

Requirements

Header: afxcmn.h

See Also

Concepts

CMNCTRL1 Sample: Demonstrates Common Control MFC Classes, Part 1

CTreeCtrl Members

CWnd Class

Hierarchy Chart

CImageList Class