Sub ItemAdd (HTR As HTREEITEM,Text As BytePtr)
Dim tvi As TVINSERTSTRUCT
Dim hTreeItem As HTREEITEM
'子アイテムを追加する。
tvi.hParent = HTR
tvi.item.pszText = Text
hTreeItem = TreeView_InsertItem( hAny , tvi )
End Sub
Sub ItemAdd (ByRef HTR As HTREEITEM,ByVal Text As BytePtr)
Dim tvi As TVINSERTSTRUCT
Dim hTreeItem As HTREEITEM
'子アイテムを追加する。
tvi.hParent = HTR
tvi.item.pszText = Text
hTreeItem = TreeView_InsertItem( hAny , tvi )
End Sub
Sub ItemAdd (ByVal HTR As HTREEITEM,ByVal Text As BytePtr)
Dim tvi As TVINSERTSTRUCT
Dim hTreeItem As HTREEITEM
'子アイテムを追加する。
tvi.hParent = HTR
tvi.item.mask=TVIF_TEXT ' TVITEM構造体の pszText メンバを有効にします
tvi.item.pszText = Text
hTreeItem = TreeView_InsertItem( hAny , tvi )
End Sub