Share via


CDHtmlDialog::DDX_DHtml_AxControl

Exchanges data between a member variable and the property value of an ActiveX control on an HTML page.

void DDX_DHtml_AxControl( 
   CDataExchange* pDX, 
   LPCTSTR szId, 
   DISPID dispid, 
   VARIANT& var  
); 
void DDX_DHtml_AxControl( 
   CDataExchange* pDX, 
   LPCTSTR szId, 
   LPCTSTR szPropName, 
   VARIANT& var  
);

Parameters

  • pDX
    A pointer to a CDataExchange object.

  • szId
    The value of the object tag's ID parameter in the HTML source for the ActiveX control.

  • dispid
    The dispatch ID of the property with which you want to exchange data.

  • szPropName
    The name of the property.

  • var
    The data member, of type VARIANT, COleVariant, or CComVariant, that holds the value exchanged with the ActiveX control property.

Example

// COleVariant m_varSliderValue;
DDX_DHtml_AxControl(pDX, _T("slider1"), 0x0b /* Value */, m_varSliderValue );

Requirements

Header: afxdhtml.h

See Also

Reference

CDHtmlDialog Class

Hierarchy Chart