遍历 ANodeObj 下所有子节点:
For K := 0 To ANodeObj.Count - 1 Do
Begin
M := ANodeObj.Item[K].StateIndex;
ANodeObj.Item[K].StateIndex := ANodeObj.StateIndex;
If (M <> ANodeObj.Item[K].StateIndex) Then
UpDateChild(ANodeObj.Item[K]);
End;
遍历一个选中的节点ANodeObj下面所有子节点
只要子节点ChildNode的count > 0 就是子树
For K := 0 To ANodeObj.Count - 1 Do
Begin
ChildNode := ANodeObj.Item[K];
If (ChildNode.Count > 0 ) Then
Showmessege('这是子树');
End;