Share via


CDHtmlDialog::GetControlDispatch

Retrieves the IDispatch interface on an ActiveX control embedded in the HTML document returned by GetDHtmlDocument.

HRESULT GetControlDispatch( 
   LPCTSTR szId, 
   IDispatch **ppdisp  
);

Parameters

  • szId
    The HTML ID of an ActiveX control.

  • ppdisp
    The IDispatch interface of the control if found in the Web page.

Return Value

A standard HRESULT value.

Requirements

Header: afxdhtml.h

See Also

Reference

CDHtmlDialog Class

Hierarchy Chart

CDHtmlDialog::GetElement

CDHtmlDialog::GetElementInterface