CTreeView Class

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Simplifies use of the tree control and of CTreeCtrl, the class that encapsulates tree-control functionality, with MFC's document-view architecture.

class CTreeView : public CCtrlView  

Public Constructors

NameDescription
CTreeView::CTreeViewConstructs a CTreeView object.

Public Methods

NameDescription
CTreeView::GetTreeCtrlReturns the tree control associated with the view.

For more information on this architecture, see the overview for the CView class and the cross-references cited there.

CObject

CCmdTarget

CWnd

CView

CCtrlView

CTreeView

Header: afxcview.h

Constructs a CTreeView object.

CTreeView();

Returns a reference to the tree control associated with the view.

CTreeCtrl& GetTreeCtrl() const;  

CCtrlView Class
Hierarchy Chart
CView Class
CCtrlView Class
CTreeCtrl Class

Show: