TE Edit Control Win32 / Win64 Help
Product page

TerGeTOCxObject

Retrieve an ActiveX object reference.

TerGeTOCxObject(ObjectId)

HWND hWnd;The handle of the window to be accessed
Long ObjectId;The object id as returned by the TerCreateOcxObject2 function.

Description: This method is available only when TE is used as an ActiveX control.

Return Value: This function returns the object reference.

Example:

Dim ObjId as long

ObjId=TOC1.TerCreateOcxObject2("MyMathML.Component",3000,3000)

MathMLEq=TerGeTOCxObject(ObjId)

MathMLEq.Data="<math><mi>a</mi><mo>+</mo><mi>b</mi></math>"