Listview ActiveX functions

NOTE:

ActiveX Controls have been deprecated by Microsoft in the latest versions of the Windows operating system in favor of the DotNet framework and its controls.

As a replacement of ActiveX controls, MAXScript supports DotNet controls in 3ds Max 9 and higher.

While MAXScript still supports ActiveX controls, these have to be installed and registered on the system to be accessible to MAXScript.

See the topic Converting ActiveX ListView Control to DotNet ListView Control for an example of switching existing ActiveX code to DotNet.

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