TreeView control and an object
Posted on 2001-09-12
This should not be a big deal, the answer may be "you do it this way" or "no, can't do".
I have a TreeView control being used to display some data coming from a hierarchical object structure. There is much more to each node than just a "text" and an "image", the objects involved are quite complex.
So, to be able to make decisions when the user click the tree, or drag&drop stuff around, I need an easy way to get a reference back to the corresponding object in my structure. But there is no way to store a object reference on a tree node, just a "key" or a "tag", both not what I'm looking for.
Question: does anyone happen to know how to store a individual object reference (a pointer for the more C-like) within a node object?
Claudio A. Heckler