Private Sub Form_Load()
Dim objTree As Object 'TreeView
Dim objNode As Object 'Node
Const tvwChild = 4
Set objTree = Me.TreeView0.Object
objTree.Nodes.Clear
objTree.Nodes.Add , , "K", "悟空"
objTree.Nodes.Add "K", tvwChild, "K1", "棍法"
objTree.Nodes.Add "K1", tvwChild, "K11", "立棍"
objTree.Nodes.Add "K11", tvwChild, "K111", "立棍"
objTree.Nodes.Add "K11", tvwChild, "K112", "悠哉"
objTree.Nodes.Add "K11", tvwChild, "K113", "风云转"
objTree.Nodes.Add "K11", tvwChild, "K114", "江海翻"
objTree.Nodes.Add "K", tvwChild, "K2", "悠哉"
objTree.Nodes.Add "K2", tvwChild, "K21", "定身法"
objTree.Nodes.Add "K21", tvwChild, "K221", "脆断"
objTree.Nodes.Add "K21", tvwChild, "K222", "瞬机"
objTree.Nodes.Add "K21", tvwChild, "K223", "不破不立"
objTree.Nodes.Add "K", tvwChild, "K3", "身法"
objTree.Nodes.Add "K3", tvwChild, "K31", "聚形散气"
objTree.Nodes.Add "K31", tvwChild, "K331", "捣虚"
objTree.Nodes.Add "K31", tvwChild, "K332", "洞察"
objTree.Nodes.Add "K31", tvwChild, "K333", "铁棒当头"
For Each objNode In objTree.Nodes
objNode.Expanded = True
Next
Set objTree = Nothing
Set objNode = Nothing
End Sub
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.