Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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  
);

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.

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

Header: afxdhtml.h

Community Additions

ADD
Show:
© 2015 Microsoft