The Wayback Machine - https://web.archive.org/web/20090921023155/http://www.codeguru.com:80/cpp/controls/treeview/

CodeGuru
Earthweb Search
Login Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

follow us on Twitter

Member Sign In
User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

jobs.internet.com

internet.commerce
Partners & Affiliates
















Home >> Visual C++ / C++ >> Controls >> Treeview Control


Treeview Control

Classes



[Updated] Tree List Control
Rating:
xyz007 - 08/17/2007
Discover an implementation of a tree view, combined with a list view, for the Windows API. The view is compatible with the tree control of the common control.

A Print Enabled Tree Control
Rating:
Mike Wild - 08/06/1998
A Print Enabled Tree Control

Class for drag-drop enabled TreeView
Rating:
Ran Almog - 08/06/1998
Class for drag-drop enabled TreeView


Directory Browsers



CDirTreeCtrl for displaying or selecting Folders and Files
Rating:
Michael Hofer - 04/29/2000
Very popular file/folder treeview that can be used on either a dialog or a view

Path Picker with Network Capabilities
Rating: none
John McTainsh - 05/30/1999
Path Picker with Network Capabilities

Thread safe Directory browser
Rating: none
Achalla Srinivasu - 03/28/1999
Thread safe Directory browser


Drag & Drop



Drag and Drop between Tree controls
Rating:
Vinayak Tadas - 01/05/2000
Drag and Drop between Tree controls

Creating Drag Image for a CTreeCtrl without images
Rating:
Pel K Txnder - 08/04/1999
Creating Drag Image for a CTreeCtrl without images

Keeping the indentation level with Drag '& Drop
Rating: none
Roelf Nel - 05/15/1999
Keeping the indentation level with Drag '& Drop

Drag and Drop Enhancement - Auto expand while hovering
Rating: none
Pete Peterson - 12/04/1998
Drag and Drop Enhancement - Auto expand while hovering

Expand branches during drag-drop
Rating: none
Justin Rudd - 08/06/1998
Expand branches during drag-drop

Right Button Drag and Drop with Popup Menu
Rating:
Zafir Anjum - 08/06/1998
Right Button Drag and Drop with Popup Menu

Copy a branch
Rating: none
Zafir Anjum - 08/06/1998
Copy a branch

Preventing inadvertant drag and drop
Rating: none
Zafir Anjum - 08/06/1998
Preventing inadvertant drag and drop

Copy an item to new location
Rating:
Zafir Anjum - 08/06/1998
Copy an item to new location

Enhanced Drag '& Drop
Rating:
Miguel Grinberg - 08/06/1998
Enhanced Drag '& Drop

Scrolling during drag and drop
Rating: none
Zafir Anjum - 08/06/1998
Scrolling during drag and drop

Drag and drop
Rating:
Zafir Anjum - 08/06/1998
Drag and drop

Dynamic Calculation of DragImage Hotspot
Rating: none
Chris Protopapas - 08/06/1998
Dynamic Calculation of DragImage Hotspot

Using ESC to cancel drag and drop
Rating: none
Zafir Anjum - 08/06/1998
Using ESC to cancel drag and drop

Moving an item or a branch
Rating:
Zafir Anjum - 08/06/1998
Moving an item or a branch


Editing labels



Preventing editing item labels in tree view
Rating: none
Marius Bakelis - 01/15/1999
Preventing editing item labels in tree view

Allowing Users to Edit Item Labels
Rating:
Zafir Anjum - 08/06/1998
Allowing users to edit item labels

Limiting label length when editing
Rating: none
Zafir Anjum - 08/06/1998
Limiting label length when editing

Handling ESC and Return Keys While Editing a Label
Rating:
Zafir Anjum - 08/06/1998
Handling ESC and Return keys while editing label


Expand - Collapse



Collapsing all branches
Rating:
Zafir Anjum - 08/06/1998
Collapsing all branches

Collapsing a branch
Rating:
Zafir Anjum - 08/06/1998
Collapsing a branch

Expanding a branch
Rating: none
Zafir Anjum - 08/06/1998
Expanding a branch


Misc - Advanced



TreeView with Three-State Checkboxes
Rating:
Mike Korzeniowski - 12/11/2003
Create check boxes in tree controls that show partial selections.

Using TreeControl (TreeView) under Win32 API (No MFC)
Rating:
Bengi - 03/14/2003
Code a tree view (tree control) under the Win32 API without MFC.

Custom ToolTip for Tree Control
Rating: none
Megavarnan Selvaraj - 05/13/2002
MFC Tree controls can be put in resizable dialog boxes. However, ToolTips don't show up for items that are not fully visible when the dialog is shrunk and only a part of the Tree control is displayed. This article shows you how to create a tree control that shows ToolTips of all its items, no matter what.

Dropdown list of choices for items in CTreeCtrl and CListCtrl
Rating:
Rustam Hovhannisyan - 02/01/2002
Derived classes from CTreeCtrl and CListCtrl with dropdown list of choices for items text (combo box)

IE Advanced Options-like Tree View
Rating: none
Huang Shansong - 01/15/2000
IE Advanced Options-like Tree View

Implementing Checkbox Controls with a TreeView
Rating: none
Peter Hahm - 12/18/1999
Implementing Checkbox Controls with a TreeView

A multi-select tree control class
Rating: none
The Chard - 07/25/1999
A multi-select tree control class

A generic Tree Property Sheet control
Rating: none
Alexander Berthold - 07/25/1999
A generic Tree Property Sheet control

Custom Draw Tree Control
Rating:
Garen Hartunian - 03/28/1999
Custom Draw Tree Control

Tooltips For Tree Control Items
Rating: none
Annapurni Mallikarjunan - 02/18/1999
Tooltips For Tree Control Items

A Print Enabled Tree View
Rating: none
Koay Kah Hoe - 01/14/1999
A Print Enabled Tree View

CTreeView extension for data population in a separate thread
Rating: none
Rajesh Deshpande - 10/28/1998
CTreeView extension for data population in a separate thread

Multi colum tree / list control
Rating: none
Mihai Filimon - 10/19/1998
Multi colum tree / list control

TreeList : Multi column tree control
Rating:
David Lantsman - 10/11/1998
TreeList : Multi column tree control

TreeHelper-A Tooltip-like Helper for formatted Text in single-line Controls
09/09/1998
TreeHelper-A Tooltip-like Helper for formatted Text in single-line Controls

Setting color and font attribute for individual items
Rating:
Zafir Anjum - 08/06/1998
Setting color and font attribute for individual items

Adding Simple Checkbox for each Item
Rating:
Zafir Anjum - 08/06/1998
Adding Simple Checkbox for each Item

Using a bitmap as a background image
Rating: none
Zafir Anjum - 08/06/1998
Using a bitmap as a background image

Right button popup menu
Rating:
Christopher A. Snyder - 08/06/1998
Right button popup menu

Setting a background color
Rating: none
Zafir Anjum - 08/06/1998
Setting a background color

Serializing to / from a text file
Rating:
Zafir Anjum - 08/06/1998
Serializing to / from a text file

Adding tooltips for item images
Rating:
Zafir Anjum - 08/06/1998
Adding tooltips for item images

Allowing multiple selection
Rating:
Zafir Anjum - 08/06/1998
Allowing multiple selection

Adding Advanced Checkbox
Rating: none
Zafir Anjum - 08/06/1998
Adding Advanced Checkbox

Connect a list container to a tree/list control
Rating:
Zoran M.Todorovic - 08/06/1998
Connect a list container to a tree/list control


Multiview



[Updated] Advanced Tree Control
Rating:
Alex Zakharenko - 04/13/2005
Learn about an advanced control based on a standard tree view control. This control supports multiple selection mode and some visual enhancement compared to the original control.

Multi-Column Tree View
Rating:
Michal Mecinski - 11/19/2003
A multi-column tree view that is only 12 Kb long. It works excellently if you don't need all those colors, fonts, sorting, and whatever.


New Listview control (IE 4.0)



A Control like IE 4's Favorites/History/Channels View
Rating: none
Rainer Pfitzner - 08/06/1998
A Control like IE 4's Favorites/History/Channels View

Stop auto-selection of item
Rating: none
Justin Rudd - 08/06/1998
Stop auto-selection of item


Searching



Finding an item (matching any member of TV_ITEM)
Rating: none
Donovan L Brown - 04/24/1999
Finding an item (matching any member of TV_ITEM)


Tree traversal



Traversing an Entire Tree View's Hierarchy
Rating: none
Vinayak Tadas - 12/11/1999
Traversing an Entire Tree View's Hierarchy

Release tree-items' data
Rating:
Yura Khodak - 10/13/1998
Release tree-items' data

Finding an item in TreeCtrl (recursive function)
Rating:
Yura Khodak - 10/02/1998
Finding an item in TreeCtrl (recursive function)

Get previous item in outline
Rating: none
Zafir Anjum - 08/06/1998
Get previous item in outline

Get next item in outline
Rating: none
Zafir Anjum - 08/06/1998
Get next item in outline

Search text in labels
Rating: none
Zafir Anjum - 08/06/1998
Search text in labels

Get last item in branch
Rating: none
Zafir Anjum - 08/06/1998
Get last item in branch

Finding an item (matching data instead of label)
Rating: none
Nancy Davis - 08/06/1998
Finding an item (matching data instead of label)


Treeview Control



TreeListCtrl In CView With Tool Tips
Rating: none
Gary Andrew Lewis - 01/13/2003
This project was written to provide you with a Tree List to put on any CView. It supports images, checkboxes, and all the functionality of both CTree and CList Controls.

Displaying Information in a CTreeView ToolTip
Rating:
John Z. Czopowik VC++ MVP - 10/01/2002
There is some confusion in the MFC world regarding CTreeView and tooltips. Learn how to display an item label or other item-related Information in a ToolTip for CTreeView.

CTreeListCtrl: The easiest TreeView with columns
Rating:
David Carballo - 02/28/2002
A TreeView with columns.

CTreeCtrl With ToolTip Based On the Item Data
Rating: none
Ran Wainstein - 02/01/2002
How to display a custom tool tip for each item in a tree view that is of any kind of data and not only the tree item text.

Dynamic Tree Loading
Rating:
Dan Breen - 12/16/1999
Great article (with skeleton code) that shows how to dynamically load a tree control


Using images



Overcome Window Flicker While Dragging
Rating: none
Jehhry23 - 06/17/2009
Overcomes owner window flicker when implementing dragging functionility.

Setting up the item images
Rating:
Zafir Anjum - 08/06/1998
Setting up the item images

Setting up state images
Rating:
Zafir Anjum - 08/06/1998
Setting up state images

Using overlay images
Rating:
Zafir Anjum - 08/06/1998
Using overlay images