CHtmlView::OnGetExternal

Called by Internet Explorer or MSHTML to obtain the host's IDispatch interface.

virtual HRESULT OnGetExternal(
   LPDISPATCH *lppDispatch 
);

Parameters

  • lppDispatch
    A pointer to the address that receives the IDispatch interface pointer of the host application. If the host exposes an Automation interface, it can provide a reference to Internet Explorer or MSHTML through this parameter. The contents of this parameter should always be initialized to NULL, even if the method fails.

Return Value

S_OK if successful, or an OLE-defined error code otherwise.

Remarks

Override OnGetExternal to react to the GetExternal notification from the Microsoft Web Browser control. See IDocHostUIHandler::GetExternal in the Windows SDK for more information.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

CHtmlView::OnGetHostInfo

Other Resources

CHtmlView Members