本文整理汇总了C++中String_256::Load方法的典型用法代码示例。如果您正苦于以下问题:C++ String_256::Load方法的具体用法?C++ String_256::Load怎么用?C++ String_256::Load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类String_256
的用法示例。
在下文中一共展示了String_256::Load方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetStockArrowName
String_256 ArrowRec::GetStockArrowName(StockArrow ArrowType)
{
String_256 ArrowName = String_256(_R(IDS_K_ARROWS_DEFAULTARROW));
switch (ArrowType)
{
case SA_STRAIGHTARROW:
ArrowName.Load(_R(IDS_K_ARROWS_STRAIGHTARROW));
break;
case SA_ANGLEDARROW:
ArrowName.Load(_R(IDS_K_ARROWS_ANGLEDARROW));
break;
case SA_ROUNDEDARROW:
ArrowName.Load(_R(IDS_K_ARROWS_ROUNDEDARROW));
break;
case SA_SPOT:
ArrowName.Load(_R(IDS_K_ARROWS_SPOT));
break;
case SA_DIAMOND:
ArrowName.Load(_R(IDS_K_ARROWS_DIAMOND));
break;
case SA_ARROWFEATHER:
ArrowName.Load(_R(IDS_K_ARROWS_ARROWFEATHER));
break;
case SA_ARROWFEATHER2:
ArrowName.Load(_R(IDS_K_ARROWS_ARROWFEATHER2));
break;
case SA_HOLLOWDIAMOND:
ArrowName.Load(_R(IDS_K_ARROWS_HOLLOWDIAMOND));
break;
default:
ArrowName = "";
break;
}
return ArrowName;
}
示例2: GetDialogTitle
void CBrushGadget::GetDialogTitle (String_256& DlgTitle) const
{
DlgTitle.Load (BubbleID_m);
}
示例3: OnInitDialog
//.........这里部分代码省略.........
return FALSE;
SevereError:
// Ooer - deeply catastrophic error...report to user and exit.
String_256 Message;
// First - check that this isn't just because of an empty error message.
if (m_StaticTextStr == 0)
{
// Get the error message
TCHAR *pMsg = Error::GetErrorString();
if ((pMsg == NULL) || (pMsg[0] == 0))
{
//
// There is no error message!
//
// In debug builds, give developer a chance to go into debugger to see who is not
// setting an error message.
#ifdef _DEBUG
if (::MessageBox(ParentHwnd,
"Somebody reported an error without an error message being set.\r"
"Click OK to continue, or Cancel to go into debugger",
"DEBUG Warning from Camelot",
MB_OKCANCEL| MB_SYSTEMMODAL | MB_ICONHAND) == IDCANCEL)
{
// User wants to go into debugger
DebugBreak();
}
#endif
// Tell the user a spurious error has occured,
if (!Message.Load(_R(IDS_ERRORBOX_SPURIOUS)))
// Can't load error message - panic.
goto VerySevereError;
// Try to get the string that says "Warning from Camelot"
String_64 Title;
if (!Title.Load(_R(IDS_ERRORBOX_WARNING)))
goto VerySevereError;
if (::MessageBox(ParentHwnd, (TCHAR *) Message, (TCHAR *) Title,
MB_OK | MB_SYSTEMMODAL | MB_ICONHAND) == 0)
// Could not create the message box - try our fallback one (probably won't
// work but what the hell).
goto VerySevereError;
// Simulate user hitting default button.
EndDialog((INT32) m_OK);
return TRUE; // We haven't set the keyboard focus.
}
}
// Inform the user that we've got a bit of a bad karma situation, and that the error
// box might be not be completely accurate.
if (!Message.Load(_R(IDS_ERRORBOX_SEVERE)))
goto VerySevereError;
if (::MessageBox(ParentHwnd, (TCHAR *) Message, (TCHAR *)BoxTitle, /*"Serious Error", */
MB_OK | MB_SYSTEMMODAL | MB_ICONHAND) == 0)
// Could not create the message box - try our fallback one (probably won't
// work but what the hell).
goto VerySevereError;