You are free to copy and use any of the samples supplied on this website for
use in your own projects, provided that all copyright notices remain intact as
part of the code. You may not publish the code to any website or other medium
without the express written permission of the copyright holder. Each sample is
provided on an "as is" basis. No warranty is expressed or implied, and no
support is offered.
| Populate a Treeview control -
standard recordset |
How to populate a
Treeview control using a standard ADO or DAO recordset. |
| Populate a Treeview control -
shaped recordset |
How to populate a
Treeview control using an ADO shaped recordset. |
| Change the background colour
of a Treeview |
How to change the
background colour of the Treeview's background. |
| Turn DragDrop OnOff |
How to turn
drag-n-drop on and off |
| Drag and Drop |
How to implement
drag-n-drop in a Treeview |
| Auto-scroll while dragging |
How to automatically
scoll up/down based on the direction of drag. |
| Clear all treeview nodes -
quickly |
A very fast way of
clearing all Treeview nodes. |
| Copy a node with or without
children |
How to copy a single
node, or the entire node's children. |
| Delete all a node's children |
How to delete all a
node's child nodes. |
| Walk a nodes child nodes |
Enumerate a node's
children |
| Change a nodes order of
precedence |
How to change a
node's order of precedence. |
| Move a node |
How to move a node
from one position to another. |
| Node move/copy choice |
Display a popup to
decide if drag-drop copies a node or moves it |
| Get selected node co-ords |
How to retrieve the
Window co-ordinates of a selected node. |
| Get selected node hWnd |
How to retrieve the
hWnd of a selected node. |
| Position & drop-down a combo
by right-clicking a treeview node |
Very interesting
piece of code. How to use a node as a combo. |
| Display a popup menu over a
Treeview control |
Ho to make a context
menu drop down by right-clicking a Treeview node. |
| Check-Uncheck nested treeview
nodes |
Checking/unchecking
a Treeview node, and (selectively) all its children. |
| |
|
| |
|