Export (0) Print
Expand All

CTreeCtrl Class

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.

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 98 and Windows NT version 4 and later.

For more information on using CTreeCtrl, see:

  • Controls
  • Using CTreeCtrl
  • Tree View Control Reference in the Platform SDK.
  • Knowledge Base article Q222905 : HOWTO: Display a Context Menu for CTreeCtrl

Requirements

Header: afxcmn.h

See Also

MFC Sample CMNCTRL1 | MFC Sample FIRE | MFC Sample FTPTREE

Class Members | Base Class | Hierarchy Chart | CImageList

Show:
© 2014 Microsoft