COleControl::WillAmbientsBeValidDuringLoad

BOOL WillAmbientsBeValidDuringLoad( );

Return Value

Nonzero indicates that ambient properties will be valid; otherwise ambient properties will not be valid.

Remarks

Call this function to determine whether your control should use the values of ambient properties as default values, when it is subsequently loaded from its persistent state.

In some containers, your control may not have access to its ambient properties during the initial call to the override of COleControl::DoPropExchange. This is the case if the container calls IPersistStreamInit::Load or IPersistStorage::Load prior to calling IOleObject::SetClientSite (that is, if it does not honor the OLEMISC_SETCLIENTSITEFIRST status bit).

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::DoPropExchange, COleControl::GetAmbientProperty