Поделиться через


CHtmlView::OnGetExternal

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

virtual HRESULT OnGetExternal(
   LPDISPATCH *lppDispatch 
);

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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

Требования

Header: afxhtml.h

См. также

Основные понятия

CHtmlView Class

CHtmlView Members

Hierarchy Chart

CHtmlView::OnGetHostInfo