Minimum Origin Version Required: Origin 2017 SR0
Gets an script engine interface.
Object GetScript( )
Object
#include <Control.h> // m_dhtml is a member of your dialog class DhtmlControl m_dhtml; void TestGetScript() { Object js; js = m_dhtml.GetScript(); if (!js) return; // calls the javascript function int nReturn = js.MyJavascriptFunction(1024, "hello"); printf("nReturn=%d\r\n", nReturn); }
Note: there is NO guarantee that the returned object is valid, caller should always check its validity before using it.
Control.h