Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the property of an ActiveX control to a new value.
void SetControlProperty(
LPCTSTR szElementId,
DISPID dispid,
VARIANT *pVar
);
void SetControlProperty(
IDispatch *pdispControl,
DISPID dispid,
VARIANT *pVar
);
void SetControlProperty(
LPCTSTR szElementId,
LPCTSTR szPropName,
VARIANT *pVar
);
Parameters
szElementId
The HTML ID of an ActiveX control.dispid
The dispatch ID of the property to set.pVar
Pointer to a VARIANT containing the new property value.pdispControl
Pointer to an ActiveX control's IDispatch interface.szPropName
String containing the name of the property to set.
Requirements
Header: afxdhtml.h