本文整理汇总了C++中PString::SetUNumber方法的典型用法代码示例。如果您正苦于以下问题:C++ PString::SetUNumber方法的具体用法?C++ PString::SetUNumber怎么用?C++ PString::SetUNumber使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PString
的用法示例。
在下文中一共展示了PString::SetUNumber方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetInfoString
bool SoundFX::GetInfoString(uint32 line, PString &description, PString &value)
{
// Is the line number out of range?
if (line >= 4)
return (false);
// Find out which line to take
switch (line)
{
// Song Length
case 0:
{
description.LoadString(res, IDS_SFX_INFODESCLINE0);
value.SetUNumber(songLength);
break;
}
// Used Patterns
case 1:
{
description.LoadString(res, IDS_SFX_INFODESCLINE1);
value.SetUNumber(maxPattern);
break;
}
// Supported/Used Samples
case 2:
{
description.LoadString(res, IDS_SFX_INFODESCLINE2);
value = "31";
break;
}
// Actual Speed (BPM)
case 3:
{
description.LoadString(res, IDS_SFX_INFODESCLINE3);
value.SetUNumber(GetBPMTempo());
break;
}
}
return (true);
}
示例2: GetInfoString
bool JamCracker::GetInfoString(uint32 line, PString &description, PString &value)
{
// Is the line number out of range?
if (line >= 3)
return (false);
// Find out which line to take
switch (line)
{
// Song Length
case 0:
{
description.LoadString(res, IDS_JAM_INFODESCLINE0);
value.SetUNumber(songLen);
break;
}
// Used Patterns
case 1:
{
description.LoadString(res, IDS_JAM_INFODESCLINE1);
value.SetUNumber(patternNum);
break;
}
// Used Instruments
case 2:
{
description.LoadString(res, IDS_JAM_INFODESCLINE2);
value.SetUNumber(samplesNum);
break;
}
}
return (true);
}