本文整理汇总了C++中PropertyValue::SetValue方法的典型用法代码示例。如果您正苦于以下问题:C++ PropertyValue::SetValue方法的具体用法?C++ PropertyValue::SetValue怎么用?C++ PropertyValue::SetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PropertyValue
的用法示例。
在下文中一共展示了PropertyValue::SetValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _IgnoreActorsToProp
bool _IgnoreActorsToProp(const ClassDefinition *pClass, PCTSTR pszProp, PropertyValue& value)
{
const SendParam *pSendParam;
bool fRet = _FindSelfSendParamInInit(pClass, SCIMETHOD_IGNOREACTORS, &pSendParam);
if (fRet)
{
// See what the value is.
if (pSendParam->HasValue())
{
fRet = _GetFirstSimpleValueInCodeSegmentArray(pSendParam->GetSelectorParams(), value);
}
if (!fRet)
{
// "ignoreActors()"
// No params means yes, ignore actors.
value.SetValue(1);
fRet = true;
}
}
else
{
// We didn't find any call to ignoreActors. By default actors are not ignored.
// (Actually, it would depend on bit $4000 of the signal property technically)
value.SetValue(0);
fRet = true;
}
return fRet;
}
示例2: _AddToPicToProp
bool _AddToPicToProp(const ClassDefinition *pClass, PCTSTR pszProp, PropertyValue& value)
{
const SendParam *pSendParam;
// This only depends on whether we found an addToPic call
value.SetValue(_FindSelfSendParamInInit(pClass, SCIMETHOD_ADDTOPIC, &pSendParam) ? 1 : 0);
return true;
}
示例3: _PriorityClassToProp
bool _PriorityClassToProp(const ClassDefinition *pClass, PCTSTR pszProp, PropertyValue& value)
{
const SendParam *pSendParam;
bool fRet = _FindSelfSendParamInInit(pClass, SCIMETHOD_SETPRI, &pSendParam);
if (fRet)
{
// See what the value is.
if (pSendParam->HasValue())
{
fRet = _GetFirstSimpleValueInCodeSegmentArray(pSendParam->GetSelectorParams(), value);
}
}
if (!fRet)
{
// We didn't find anything. The default value for priority tends to be zero, but that isn't
// accurate. It depends on the signal property.
// Instead we'll use -1 as a sentinel value indicating "default priority".
value.SetValue((WORD)-1);
fRet = true;
}
return fRet;
}