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