Compartilhar via


COleControlSite::SetProperty

Sets the control property specified by dwDispID.

virtual void AFX_CDECL SetProperty(
   DISPID dwDispID,
   VARTYPE vtProp,
   ... 
);

Parameters

  • dwDispID
    Identifies the dispatch ID of the property or method, found on the control's IDispatch interface, to be set.

  • vtProp
    Specifies the type of property to be set. For possible values, see the Remarks section for COleDispatchDriver::InvokeHelper.

  • ...
    A single parameter of the type specified by vtProp.

Remarks

If SetProperty encounters an error, an exception is thrown.

The type of exception is determined by the return value of the attempt to set the property or method. If the return value is DISP_E_EXCEPTION, a COleDispatchExcpetion is thrown; otherwise a COleException.

Requirements

Header: afxocc.h

See Also

Reference

COleControlSite Class

Hierarchy Chart

COleControlSite::SetPropertyV

Other Resources

COleControlSite Members