共用方式為


CDHtmlDialog::SetElementProperty

Sets a property of an HTML element.

void SetElementProperty( 
   LPCTSTR szElementId, 
   DISPID dispid, 
   VARIANT *pVar  
);

Parameters

  • szElementId
    The ID of an HTML element.

  • dispid
    The dispatch ID of the property to set.

  • pVar
    The new value of the property.

Requirements

Header: afxdhtml.h

See Also

Reference

CDHtmlDialog Class

Hierarchy Chart

CDHtmlDialog::SetControlProperty

CDHtmlDialog::SetElementText

CDHtmlDialog::SetElementHtml