TreeViews are kind of useless

BlitzPlus Forums/BlitzPlus Programming/TreeViews are kind of useless

JoshK(Posted 2004) [#1]
What is the point of CountTreeViewNodes() if you can't get the tree view nodes from the parent?


JoshK(Posted 2004) [#2]
Link to MS docs:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/treeview/messages/tvm_getnextitem.asp

Constants:


Example code:
Get the windows handle of the first tree view node:
node=SendMessage(QueryObject(tree,1), TVM_GETNEXTITEM, TVGN_CHILD, 0)
Get a sibling:
sibnode=SendMessage(QueryObject(tree,1), TVM_GETNEXTITEM, TVGN_NEXT,node)



Lattyware(Posted 2004) [#3]
I've just turned it into a new bit of code I made, a directory view: