![]() | Type | Description | ||
| Group as Group | A Group object where the user clicks a check box cell. | |||
| Item as HITEM | A long expression that indicates the handle of the item where the cell's state is changed. | |||
| ColIndex as Long | A long expression that indicates the index of the column where the cell's state is changed, or a long expression that indicates the handle of the cell, if the Item parameter is 0. |
The following sample displays the cell's caption whose check box is clicked:
Private Sub ExplorerTree1_AddItem(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM)
With Group.Items
.CellHasCheckBox(Item, 0) = True
End With
End Sub
Private Sub ExplorerTree1_CellStateChanged(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM, ByVal ColIndex As Long)
With Group.Items
Debug.Print .CellCaption(Item, ColIndex)
End With
End Sub