CAxPropertyContainer::PutPropertyValue

virtual bool CAxPropertyContainer::PutPropertyValue(const PropertyId propId, const VARIANT& propVal)

Set a property value using the property ID.

Defined in: AxPropContainer.h

Return Value

Returns true if the property value for the given property ID is found and the value successfully assigned, otherwise it returns false.

Parameters

propId

Property ID to store.

propVal

Value to store in property.

Comments

This function uses the IDispatch interface of the ActiveX control associated with the container to store the value of the property from the control. If that fail, the function call is delegated to the base class.