Condividi tramite


CDHtmlDialog::SetControlProperty

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

See Also

Reference

CDHtmlDialog Class

Hierarchy Chart

CDHtmlDialog::SetElementProperty