Microsoft SDK for Java

ActiveXControl Class Constructors

The ActiveXControl Class contains the following constructors:

ActiveXControl()
ActiveXControl(String clsid)
ActiveXControl(IUnknown punk)

ActiveXControl()

Creates an ActiveXControl object that is a container for an ActiveX control. To add a control to the container, you can call the createControl method.

Syntax

public ActiveXControl();

ActiveXControl(String clsid)

Creates an ActiveXControl object that is a container for an ActiveX control. This method hosts the control specified by the CLSID (class identifier) or ProgID (programatic identifier).

Syntax

public ActiveXControl(String clsid);

Parameters

clsid Identifies the CLSID (or ProgID) for the ActiveX control. The CLSID is in the form "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}", where x is a valid hexadecimal number.

ActiveXControl(IUnknown punk)

Creates an ActiveXControl object that is a container for an ActiveX control. This method hosts a control that has already been created.

Syntax

public ActiveXControl(IUnknown punk);

Parameters

punk The identity of the ActiveX control.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.