为什么只能展开3个节点,请高手解答.
With window("text:=HP QuickTest Professional Tutorial").wintreeview("nativeclass:=Systreeview32")
'a=.getItemsCount
'msgbox a
For k=0 to .GetItemsCount
.expand k
Next
End With
Dim A
A = Array(5)
Set TreeView = Window("HP QuickTest Professional").WinTreeView("SysTreeView32")
ReDim A(TreeView.GetItemsCount)
For I = 0 to TreeView.GetItemsCount - 1
a(I)= TreeView.GetItem(I)
Next
For I = 0 to Ubound(a) - 1
TreeView.Expand a(I)
Next