TE Edit Control Win32 / Win64 Help
Product page

TerCreateOcxObject2

Embed an ActiveX control in the document.

int TerCreateOcxObject2(hWnd, ProgId, width, height)
HWND hWnd;Editor window to access
int ProgId;The program id of the ActiveX control to embed.
int width;The width of the ActiveX control.
int height;The height of the ActiveX control

Example:

TerCreateOcxObject2(hWnd, "SAMPLECONTROL.SampleControlCtrl.1",
2000, 2000)

Return Value: When successful this function returns object id of the control. Otherwise it returns 0.