本文整理汇总了C++中CLanguage::loadFile方法的典型用法代码示例。如果您正苦于以下问题:C++ CLanguage::loadFile方法的具体用法?C++ CLanguage::loadFile怎么用?C++ CLanguage::loadFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLanguage
的用法示例。
在下文中一共展示了CLanguage::loadFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CFG_OnSelChangedProc
//.........这里部分代码省略.........
{
int i = (TCHAR)SendMessage(GetDlgItem(hDlg,IDC_SLIDER_TRANS),TBM_GETPOS,0,(LPARAM)0) ;
SetDlgTrans(GetParent(hDlg),i);
} else if (lParam==(LPARAM)g_hwndScrollThreads)
{
DWORD i = (DWORD)SendMessage(GetDlgItem(hDlg,IDC_SLIDER_THREADS),TBM_GETPOS,0,(LPARAM)0) ;
TCHAR sztemp[20];
AppCFGtemp.dwThreads = i;
SetDlgItemText(hDlg,IDC_STATIC_THREAD,_itoa(i,sztemp,10));
}
else if (lParam==(LPARAM)g_hwndSleepSlider)
{
DWORD i = (DWORD)SendMessage(GetDlgItem(hDlg,IDC_SLIDER_SLEEP_VAL),TBM_GETPOS,0,(LPARAM)0) ;
TCHAR sztemp[100];
AppCFG.dwSleep = i;
AppCFGtemp.dwSleep = i;
sprintf(sztemp,"Sleep time is %d ms",i);
SetDlgItemText(hDlg,IDC_STATIC_SLEEP_VAL,sztemp);
}
return FALSE;
}
case WM_COMMAND:
switch(HIWORD(wParam))
{
case CBN_SELCHANGE:
{
if(LOWORD(wParam)==IDC_COMBO_LANG)
{
TCHAR sztemp[200];
int idx= SendMessage(GetDlgItem(hDlg,IDC_COMBO_LANG), (UINT) CB_GETCURSEL, 0, (LPARAM)0 );
SendMessage(GetDlgItem(hDlg,IDC_COMBO_LANG), (UINT) CB_GETLBTEXT, idx, (LPARAM)sztemp );
strcpy(AppCFGtemp.szLanguageFilename,g_lang.m_Languages[sztemp].c_str());
g_lang.loadFile(g_lang.m_Languages[sztemp].c_str());
MessageBox(NULL,g_lang.GetString("AlertRestartRequired"),"Alert!",MB_OK);
}
}
break;
case CBN_CLOSEUP :
g_bChanged = true;
break;
case BN_CLICKED:
break;
case EN_CHANGE:
{
g_bChanged = true;
}
}
switch (LOWORD(wParam))
{
case IDC_CHECK_USE_HTTP:
g_bChanged = true;
break;
case IDC_BUTTON_SEL_FONT:
HFONT hf;
hf = CFG_SelectFont();
DeleteObject(g_hf);
g_hf = hf;
ChangeFont(g_hWnd, g_hf);
break;
case IDCANCEL:
EndDialog(hDlg, 0);
break;