Brief Full Advanced Search Search Tips
|  |  | To access the contents, click the chapter and section titles. Fast Track Visual C++ 6.0 Programming (Publisher: John Wiley & Sons, Inc.) Author(s): Steve Holzner ISBN: 0471312908 Publication Date: 09/01/98 Search this book:
Previous | Table of Contents | Next
#### Populating a Tree View To populate the tree control with items, we first call GetTreeCtrl(), then use the InsertItem() function to add items to the tree.
Table 3.3 CTreeCtrl Class’s Functions
Function | Does this
--- | ---
Create | Creates a tree view control and attaches it to a CTreeCtrl object.
CreateDragImage | Creates a dragging bitmap for the specified tree view item.
CTreeCtrl | Constructs a CTreeCtrl object.
DeleteAllItems | Deletes all items in a tree view control.
DeleteItem | Deletes a new item in a tree view control.
EditLabel | Edits a specified tree view item in place.
EnsureVisible | Ensures that a tree view item is visible in its tree view control.
Expand | Expands or collapses the child items of the specified tree view item.
GetBkColor | Retrieves the current background color of the control.
GetCheck | Retrieves the check state of a tree control item.
GetChildItem | Retrieves the child of a specified tree view item.
GetCount | Retrieves the number of tree items associated with a tree view control.
GetDropHilightItem | Retrieves the target of a drag-and-drop operation.
GetEditControl | Retrieves the handle of the edit control used to edit the specified tree view item.
GetFirstVisibleItem | Retrieves the first visible item of the specified tree view item.
GetImageList | Retrieves the handle of the image list associated with a tree view control.
GetIndent | Retrieves the offset (in pixels) of a tree view item from its parent.
GetInsertMarkColor | Retrieves the color used to draw the insertion mark for the tree view.
GetItem | Retrieves the attributes of a specified tree view item.
GetItemData | Returns the 32-bit application-specific value associated with an item.
GetItemHeight | Retrieves the current height of the tree view items.
GetItemImage | Retrieves the images associated with an item.
GetItemRect | Retrieves the bounding rectangle of a tree view item.
GetItemState | Returns the state of an item.
GetItemText | Returns the text of an item.
GetNextItem | Retrieves the next tree view item that matches a specified relationship.
GetNextSiblingItem | Retrieves the next sibling of the specified tree view item.
GetNextVisibleItem | Retrieves the next visible item of the specified tree view item.
GetParentItem | Retrieves the parent of the specified tree view item.
GetPrevSiblingItem | Retrieves the previous sibling of the specified tree view item.
GetPrevVisibleItem | Retrieves the previous visible item of the specified tree view item.
GetRootItem | Retrieves the root of the specified tree view item.
GetSelectedItem | Retrieves the currently selected tree view item.
GetTextColor | Retrieves the current text color of the control.
GetToolTips | Retrieves the handle to the child ToolTip control used by a tree view control.
GetVisibleCount | Retrieves the number of visible tree items associated with a tree view control.
HitTest | Returns the current position of the cursor related to the CTreeCtrl object.
InsertItem | Inserts a new item in a tree view control.
ItemHasChildren | Returns nonzero if the specified item has child items.
Select | Selects, scrolls into view, or redraws a specified tree view item.
SelectDropTarget | Redraws the tree item as the target of a drag-and-drop operation.
SelectItem | Selects a specified tree view item.
SelectSetFirstVisible | Selects a specified tree view item as the first visible item.
SetBkColor | Sets the background color of the control.
SetCheck | Sets the check state of a tree control item.
SetImageList | Sets the handle of the image list associated with a tree view control.
SetIndent | Sets the offset (in pixels) of a tree view item from its parent.
SetInsertMark | Sets the insertion mark in a tree view control.
SetInsertMarkColor | Sets the color used to draw the insertion mark for the tree view.
SetItem | Sets the attributes of a specified tree view item.
SetItemData | Sets the 32-bit application-specific value associated with an item.
SetItemHeight | Sets the height of the tree view items.
SetItemImage | Associates images with an item.
SetItemState | Sets the state of an item.
SetItemText | Sets the text of an item.
SetTextColor | Sets the text color of the control.
SetToolTips | Sets a tree view control’s child ToolTip control.
SortChildren | Sorts the children of a given parent item.
SortChildrenCB | Sorts the children of a given parent item using an application-defined sort function.
Previous | Table of Contents | Next

| Products | Contact Us | About Us | Privacy | Ad Info | Home Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.