ListView ActiveX Helper Functions

The following additional functions packaged in a structure called ListView work in conjunction with the ListView ActiveX Control. All functions need to be passed the windows handle, which can be acquired with the .hWnd property of the ActiveX control.

Listview.hittest <hWnd> <point2_pos>

Returns an array of listitem index and the subItem index, subItem index is 0 only when the listItem is hittested. The Point2 value is expected in Pixels, NOT twips!

Listview.getIndent <hWnd> <index>

Returns the indent of the indexed listitem.

Listview.setIndent <hWnd> <index> <int_indent>

Sets the indent of the indexed listitem.

See also

ListView ActiveX Control

ActiveX Controls in MAXScript Rollouts

How To ... Develop a Selected Objects Inspector using ListView ActiveX Control - Part One

How To ... Develop a Selected Objects Inspector using ListView ActiveX Control - Part Two