本文整理汇总了C++中StrAnsi::Append方法的典型用法代码示例。如果您正苦于以下问题:C++ StrAnsi::Append方法的具体用法?C++ StrAnsi::Append怎么用?C++ StrAnsi::Append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StrAnsi
的用法示例。
在下文中一共展示了StrAnsi::Append方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnExtendedKey
void ViewTest2::WrapOnExtendedKey(int _chw, VwShiftStatus _ss)
{
StrAnsi staExt;
switch (_ss)
{
case kfssNone:
staExt.Append("None");
break;
case kgrfssShiftControl:
staExt.Append("Shift + Control");
break;
case kfssShift:
staExt.Append("Shift ");
break;
case kfssControl:
staExt.Append("Control ");
break;
default:
staExt.Append("Undefined state");
}
m_psts->OutputFormat(" FUNCTION: OnExtendedKey(%d, %s)\n", _chw, staExt.Chars());
CheckHr(m_qrootb->OnExtendedKey(_chw, _ss));
}
示例2: PreCompileFeatures
bool GdlRenderer::PreCompileFeatures(GrcManager * pcman, GrcFont * pfont, int * pfxdFeatVersion)
{
*pfxdFeatVersion = 0x00010000;
int nInternalID = 0;
Set<unsigned int> setID;
for (int ipfeat = 0; ipfeat < m_vpfeat.Size(); ipfeat++)
{
GdlFeatureDefn * pfeat = m_vpfeat[ipfeat];
unsigned int nID = pfeat->ID();
if (setID.IsMember(nID))
{
char rgch[20];
if (nID > 0x00FFFFFF)
{
char rgchID[5];
memcpy(rgch, &nID, 4);
rgchID[0] = rgch[3]; rgchID[1] = rgch[2]; rgchID[2] = rgch[1]; rgchID[3] = rgch[0];
rgchID[4] = 0;
StrAnsi staTmp = "'";
staTmp.Append(rgchID);
staTmp.Append("'");
memcpy(rgch, staTmp.Chars(), staTmp.Length() + 1);
}
else
itoa(nID, rgch, 10);
g_errorList.AddError(3152, pfeat, "Duplicate feature ID: ", rgch);
}
else
setID.Insert(nID);
if (pfeat->ErrorCheck())
{
pfeat->SetStdStyleFlag();
pfeat->FillInBoolean(pcman->SymbolTable());
pfeat->ErrorCheckContd();
pfeat->CalculateDefault();
pfeat->AssignInternalID(nInternalID);
pfeat->RecordDebugInfo();
}
if (nID > 0x0000FFFF)
*pfxdFeatVersion = 0x00020000;
nInternalID++;
}
if (m_vpfeat.Size() > kMaxFeatures)
{
char rgchMax[20];
itoa(kMaxFeatures, rgchMax, 10);
char rgchCount[20];
itoa(m_vpfeat.Size(), rgchCount, 10);
g_errorList.AddError(3153, NULL,
"Number of features (",
rgchCount,
") exceeds maximum of ",
rgchMax);
}
return true;
}