CTreeCtrl Class
Provides the functionality of the Windows common tree view control.
class CTreeCtrl : public CWnd
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CTreeCtrl object. |
Public Methods
Name |
Description |
---|---|
Creates a tree view control and attaches it to a CTreeCtrl object. |
|
Creates a dragging bitmap for the specified tree view item. |
|
Creates a tree control with the specified Windows extended styles and attaches it to a CTreeCtrl object. |
|
Deletes all items in a tree view control. |
|
Deletes a new item in a tree view control. |
|
Edits a specified tree view item in-place. |
|
Cancels the edit operation on the label of a tree-view item in the current tree-view control. |
|
Ensures that a tree view item is visible in its tree view control. |
|
Expands, or collapses, the child items of the specified tree view item. |
|
Retrieves the current background color of the control. |
|
Retrieves the check state of a tree control item. |
|
Retrieves the child of a specified tree view item. |
|
Retrieves the number of tree items associated with a tree view control. |
|
Retrieves the target of a drag-and-drop operation. |
|
Retrieves the handle of the edit control used to edit the specified tree view item. |
|
Retrieves the extended styles that the current tree-view control is using. |
|
Retrieves the first visible item of the specified tree view item. |
|
Retrieves the handle of the image list associated with a tree view control. |
|
Retrieves the offset (in pixels) of a tree view item from its parent. |
|
Retrieves the color used to draw the insertion mark for the tree view. |
|
Retrieves the attributes of a specified tree view item. |
|
Returns the 32-bit application-specific value associated with an item. |
|
Retrieves the index of the image to display when the specified item of the current tree-view control is in the expanded state. |
|
Retrieves the current height of the tree view items. |
|
Retrieves the images associated with an item. |
|
Retrieves the bounding rectangle for a specified part of a specified item in the current tree-view control. |
|
Retrieves the bounding rectangle of a tree view item. |
|
Returns the state of an item. |
|
Retrieves the extended state of the specified item in the current tree-view control. |
|
Returns the text of an item. |
|
Retrieves the last expanded item in the current tree-view control. |
|
Retrieves the current line color for the tree view control. |
|
Retrieves the next tree view item that matches a specified relationship. |
|
Retrieves the next sibling of the specified tree view item. |
|
Retrieves the next visible item of the specified tree view item. |
|
Retrieves the parent of the specified tree view item. |
|
Retrieves the previous sibling of the specified tree view item. |
|
Retrieves the previous visible item of the specified tree view item. |
|
Retrieves the root of the specified tree view item. |
|
Retrieves the maximum scroll time for the tree view control. |
|
Retrieves the number of selected items in the current tree-view control. |
|
Retrieves the currently selected tree view item. |
|
Retrieves the current text color of the control. |
|
Retrieves the handle to the child ToolTip control used by a tree view control. |
|
Retrieves the number of visible tree items associated with a tree view control. |
|
Returns the current position of the cursor related to the CTreeCtrl object. |
|
Inserts a new item in a tree view control. |
|
Returns nonzero if the specified item has child items. |
|
Maps the specified accessibility identifier to the handle to a tree-view item in the current tree-view control. |
|
Maps the specified handle to a tree-view item in the current tree-view control to an accessibility identifier. |
|
Selects, scrolls into view, or redraws a specified tree view item. |
|
Redraws the tree item as the target of a drag-and-drop operation. |
|
Selects a specified tree view item. |
|
Selects a specified tree view item as the first visible item. |
|
Sets the autoscroll rate of the current tree-view control. |
|
Sets the background color of the control. |
|
Sets the check state of a tree control item. |
|
Sets the extended styles for the current tree-view control. |
|
Sets the handle of the image list associated with a tree view control. |
|
Sets the offset (in pixels) of a tree view item from its parent. |
|
Sets the insertion mark in a tree view control. |
|
Sets the color used to draw the insertion mark for the tree view. |
|
Sets the attributes of a specified tree view item. |
|
Sets the 32-bit application-specific value associated with an item. |
|
Sets the index of the image to display when the specified item of the current tree-view control is in the expanded state. |
|
Sets the height of the tree view items. |
|
Associates images with an item. |
|
Sets the state of an item. |
|
Sets the extended state of the specified item in the current tree-view control. |
|
Sets the text of an item. |
|
Sets the current line color for the tree view control. |
|
Sets the maximum scroll time for the tree view control. |
|
Sets the text color of the control. |
|
Sets a tree view control's child ToolTip control. |
|
Displays the infotip for the specified item in the current tree-view control. |
|
Sorts the children of a given parent item. |
|
Sorts the children of a given parent item using an application-defined sort function. |
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:
Tree View Control Reference in the Windows SDK.
Knowledge Base article Q222905: HOWTO: Display a Context Menu for CTreeCtrl
Inheritance Hierarchy
CTreeCtrl
Requirements
Header: afxcmn.h