![]() | Type | Description | ||
| Group as Group | A Group object where user clicks a button. | |||
| Item as HITEM | A long expression that indicates the handle of the item where the user clicks the cell's button. | |||
| ColIndex as Long | A long expression that specifies the index of the column where the user clicks the cell's button, or a long expression that indicates the handle of the cell being clicked, if the Item parameter is 0. |
The following sample prints the caption of the clicked cell:
Private Sub ExplorerTree1_AddItem(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM)
With Group.Items
.CellHasButton(Item, 0) = True
End With
End Sub
Private Sub ExplorerTree1_CellButtonClick(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM, ByVal ColIndex As Long)
MsgBox Group.Items.CellCaption(Item, ColIndex)
End Sub