This topic has not yet been rated - Rate this topic

COleControlSite::SetProperty

Sets the control property specified by dwDispID.

virtual void AFX_CDECL SetProperty(
   DISPID dwDispID,
   VARTYPE vtProp,
   ... 
);
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.

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.

Header: afxocc.h

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ