Share via


CDHtmlDialog::GetControlProperty

Retrieves the requested property of the specified ActiveX control.

VARIANT GetControlProperty( 
   LPCTSTR szId, 
   LPCTSTR szPropName  
); 
VARIANT GetControlProperty( 
   LPCTSTR szId, 
   DISPID dispid  
); 
VARIANT GetControlProperty( 
   IDispatch* pdispControl, 
   DISPID dispid  
);

Parameters

  • szId
    The HTML ID of an ActiveX control.

  • szPropName
    The name of a property in the default locale of the current user.

  • pdispControl
    The IDispatch pointer of an ActiveX control.

  • dispid
    The dispatch ID of a property.

Return Value

A variant containing the requested property or an empty variant if the control or property could not be found.

Remarks

The overloads are listed from least efficient at the top to most efficient at the bottom.

Requirements

Header: afxdhtml.h

See Also

Reference

CDHtmlDialog Class

Hierarchy Chart

CDHtmlDialog::GetControlDispatch