Originally posted by Gary Beene
View Post
[quote]
Code:
Do Treeview Get Child hWnd, %ID_Treeview, hNode To iReturn 'get child (1st choice) If iReturn = 0 Then Treeview Get Next hWnd, 100, hNode To iReturn 'or sibling (2nd choice) If iReturn = 0 Then 'no child or sibling Do 'get sibling of first parent with sibling Treeview Get Parent hWnd, %ID_TreeView, hNode To hNode 'parent Treeview Get Next hWnd, %ID_TreeView, hNode To iReturn 'sibling child of parent Loop Until iReturn Or (hNode = 0) 'stop when find sibling of parent with sibling, or no more choices End If hNode = iReturn 'possible values: 0, zero (no parent/no sibling), <>0 (parent or sibling) Sleep 250 If iReturn Then Treeview Select hWnd, %ID_TreeView, hNode Loop While hNode
"What we are today
comes from thoughts of yesterday,
and our present thoughts
build our life of tomorrow:
our life is the creation
of our minds."
Buddha
==================================
Leave a comment: