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.
The CTreeCtrl class provides the functionality of the Windows common tree view control. This control (and therefore the CTreeCtrl class) is available only to programs running under Windows 95 and Windows NT versions 3.51 and later.
For more information on using CTreeCtrl, see Control Topics, Using CTreeCtrl in the Visual C++ Programmer’s Guide,and Tree View Control Reference in the Platform SDK.
#include <afxcmn.h>
Class Members | Base Class | Hierarchy Chart
Samples MFC Sample CMNCTRL1 | MFC Sample FIRE | MFC Sample FTPTREE
See Also CImageList