Retrieves the item's ActiveX object associated, if the item was previously created by
InsertControlItem property.

Type

Description

Item as HITEM

A long expression that indicates the handle of the item that was previously created by
InsertControlItem property.

Object

An object that indicates the ActiveX hosted by the item.

Use the ItemObject to retrieve the ActiveX control created by the InsertControlItem
method. Use the ItemControlID property to
retrieve the control's identifier. Use the ItemHeight
property to specify the item's height. If the item hosts an ActiveX control, the
ItemHeight property specifies the height of the ActiveX control also.

The sample uses the #import statement to include the ExOrgChart's Type
Library. In this sample, the ItemObject property retrieves an IChartView object.
The path to the library should be provided in case it is not located in your
system folder.