This topic has not yet been rated - Rate this topic

COleControlSite::SafeSetProperty

Sets the control property specified by dwDispID.

virtual BOOL AFX_CDECL SafeSetProperty(
   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.

Nonzero if successful; otherwise zero.

Note Note

Unlike SetProperty and SetPropertyV, if an error is encountered (such as trying to set a nonexistent property), no exception is thrown.

Header: afxocc.h

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