Can I store and retrieve MY INFOMATION to and from the tree control node?
Posted by zhs1987
on 09/25/2005 11:17pm
I got a problem. I want to show a list of information with a tree control (or tree view). but each node
must include some of my own information (for example: an int id) which is read from some database. I
tried to use some OO way like this:
class CMyNode: public TV_INSERTSTRUCT
tvinsert.id = id;
// id is something from a column of a database table
It shows OK, but I don't know how to get the id of the current seleted node! Could you tell me how to?
I'll appreciate it so much, if you solve it for me.