SECAScriptHost Class

class SECAScriptHost: public IActiveScriptSite, public IActiveScriptSiteWindow

ActiveScript document class

Defined in: ScriptHost.h

Comments

MFC encapsulation of the IActiveScriptSite and IActiveScriptSiteWindow COM interfaces to hook scripting capability to your MFC application.

Class Members

Construction/Initialization

SECAScriptHost( IActiveScriptErrorHandler *phandler=NULL )

Construction

Operation

enum  ScriptLang

ScriptLang - available scripting languages

virtual HRESULT  CreateScriptEngine( CLSID clsidEngine )

Create the scripting engine of choice.

virtual HRESULT  CreateScriptEngine(ScriptLang lang)

Create the scripting engine of choice

virtual HRESULT  DestroyScriptEngine()

Destroy the current scripting engine

virtual HRESULT  AddTopLevelItem(LPCOLESTR pstrItemName, LPDISPATCH lpDisp, CWnd *pItemWnd = NULL, DWORD dwItemFlags=SCRIPTITEM_ISVISIBLE | SCRIPTITEM_ISSOURCE )

Add a top-level OLE automation object to this script

virtual HRESULT  ParseFile(TCHAR *pszFileName, LPCOLESTR pstrItemName = NULL)

Parse script in specified file

virtual HRESULT  ParseBuffer( const TCHAR *pszBuffer, UINT sizeBuffer, LPCOLESTR pstrItemName = NULL)

Parse script in specified buffer

virtual HRESULT  SetScriptState( SCRIPTSTATE ss = SCRIPTSTATE_CONNECTED )

Set the current script state

virtual HRESULT  GetScriptState( SCRIPTSTATE *ss )

Get the current script state

virtual HRESULT  SetHostWindow( HWND hWnd )

Set the host window for script execution

virtual HRESULT  SetHostWindow( CWnd* pWnd)

Set the host window for script execution