Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.13 KB

communicating-with-a-tree-control.md

File metadata and controls

21 lines (15 loc) · 1.13 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Communicating with a Tree Control
Communicating with a Tree Control
11/04/2016
tree controls [MFC], communicating with
CTreeCtrl class [MFC], calling member functions
communications, tree controls
tree controls
680ad9ee-b11f-452d-93fa-501ca7d7e069

Communicating with a Tree Control

You use different methods for calling member functions in a CTreeCtrl object depending on how the object was created:

  • If the tree control is in a dialog box, use a member variable of type CTreeCtrl that you create in the dialog box class.

  • If the tree control is a child window, use the CTreeCtrl object (or pointer) you used to construct the object.

  • If you're using a CTreeView object, use the function CTreeView::GetTreeCtrl to get a reference to the tree control. You can initialize another reference with this value or assign the address of the reference to a CTreeCtrl pointer.

See also

Using CTreeCtrl
Controls