property G2antt.DrawPartItem as HITEM
Indicates the handle of the item where the BeforeDrawPart / AfterDrawPart event occurs.

TypeDescription
HITEM A Long expression that specifies the handle of the item that hosts the "OwnerDraw" bar.
By default, the DrawPartItem property returns 0. The DrawPartItem property is read-only. The DrawPartItem property is valid during the BeforeDrawPart / AfterDrawPart event, while the Part parameter is exOwnerDrawBar. The DrawPartKey property indicates the key of the "OwnerDraw" being painted. Use the ItemBar property to access the properties of the "OwnerDraw" bar. The CellValue property specifies the cell's value giving the handle of the item and the index/key/name of the column.