How do you use an HTREEITEM with a tree control.
I am trying to learn to pull from a database to populate a tree...If I have an array of HTREEITEMS, how can I later get the text out of it. i.e. If I am adding to the tree, I don't want to add a root if it is already there, so I want to compare the CString (that is my current potential addee) against all previous roots that were stored in the HTREEITEM array. something like
if (strtmp == rootItem)
but of course that doesn't work. I have been looking thru MSDN, but can't seem to determine exactly what the HTREEITEM is. Can some give me a one minute insight?
Thanks
I am trying to learn to pull from a database to populate a tree...If I have an array of HTREEITEMS, how can I later get the text out of it. i.e. If I am adding to the tree, I don't want to add a root if it is already there, so I want to compare the CString (that is my current potential addee) against all previous roots that were stored in the HTREEITEM array. something like
if (strtmp == rootItem)
but of course that doesn't work. I have been looking thru MSDN, but can't seem to determine exactly what the HTREEITEM is. Can some give me a one minute insight?
Thanks