本文整理汇总了C++中CLanguage::EnumerateLanguage方法的典型用法代码示例。如果您正苦于以下问题:C++ CLanguage::EnumerateLanguage方法的具体用法?C++ CLanguage::EnumerateLanguage怎么用?C++ CLanguage::EnumerateLanguage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLanguage
的用法示例。
在下文中一共展示了CLanguage::EnumerateLanguage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CFG_OnSelChangedProc
LRESULT CALLBACK CFG_OnSelChangedProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
TCHAR szText[256];
TCHAR tmp[20];
TCHAR szFile[260];
hwndConfDialog = hDlg;
switch(uMsg)
{
case WM_INITDIALOG:
{
g_bChanged = false;
CFG_OnChildDialogInit(hDlg);
SendDlgItemMessage (hDlg,IDC_COMBO_MOD, CB_ADDSTRING, 0, (LPARAM)"ALT");
SendDlgItemMessage (hDlg,IDC_COMBO_MOD, CB_ADDSTRING, 0 ,(LPARAM)"CONTROL");
SendDlgItemMessage (hDlg,IDC_COMBO_MOD, CB_ADDSTRING, 0, (LPARAM)"SHIFT");
if(AppCFGtemp.dwMinimizeMODKey == MOD_ALT)
SendDlgItemMessage (hDlg,IDC_COMBO_MOD, CB_SETCURSEL, 0, 0);
else if(AppCFGtemp.dwMinimizeMODKey == MOD_CONTROL)
SendDlgItemMessage (hDlg,IDC_COMBO_MOD, CB_SETCURSEL, 1, 0);
else if(AppCFGtemp.dwMinimizeMODKey == MOD_SHIFT)
SendDlgItemMessage (hDlg,IDC_COMBO_MOD, CB_SETCURSEL, 2, 0);
sprintf(tmp,"%c",AppCFGtemp.cMinimizeKey);
SetDlgItemText(hDlg,IDC_EDIT_KEY,tmp);
SendDlgItemMessage (hDlg,IDC_EDIT_KEY, EM_SETLIMITTEXT,1, 0);
CheckDlgButton(hDlg,IDC_CHECK_CONNECT_CLOSE,AppCFGtemp.bCloseOnConnect);
CheckDlgButton(hDlg,IDC_CHECK1,AppCFGtemp.bAutostart);
CheckDlgButton(hDlg,IDC_CHECK_SHORTNAME,AppCFGtemp.bUseShortCountry);
CheckDlgButton(hDlg,IDC_CHECK_REG_WEB_PROTOCOLS,AppCFGtemp.bRegisterWebProtocols);
CheckDlgButton(hDlg,IDC_CHECK_NO_MAP_RESIZE,AppCFGtemp.bNoMapResize);
CheckDlgButton(hDlg,IDC_CHECK_REFRESH_AT_START_UP,AppCFGtemp.bAutoRefreshServerlist);
LVCOLUMN lvColumn;
//initialize the columns
lvColumn.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM ;
lvColumn.fmt = LVCFMT_LEFT;
HWND hwndLVexes;
hwndLVexes = GetDlgItem(hDlg,IDC_LIST_CFG_EXES);
lvColumn.cx = 80;
lvColumn.pszText = (LPSTR)g_lang.GetString("ColumnName");
ListView_InsertColumn(hwndLVexes, 0, &lvColumn);
lvColumn.cx = 120;
lvColumn.pszText = (LPSTR)g_lang.GetString("LaunchByScript");
ListView_InsertColumn(hwndLVexes, 1, &lvColumn);
lvColumn.cx = 180;
lvColumn.pszText = (LPSTR)g_lang.GetString("ColumnExePath");
ListView_InsertColumn(hwndLVexes, 3, &lvColumn);
lvColumn.pszText = (LPSTR)g_lang.GetString("ColumnCommand");
ListView_InsertColumn(hwndLVexes, 4, &lvColumn);
DWORD dwExStyle=0;
dwExStyle = ListView_GetExtendedListViewStyle(hwndLVexes);
dwExStyle |= LVS_EX_FULLROWSELECT | LVS_EX_LABELTIP ;
ListView_SetExtendedListViewStyle(hwndLVexes,dwExStyle);
CheckDlgButton(hDlg,IDC_CHECK2,AppCFGtemp.bUse_minimize);
CheckDlgButton(hDlg,IDC_CHECK_SCR_RESTORE,AppCFGtemp.bUSE_SCREEN_RESTORE );
sprintf(szText,"%d",AppCFGtemp.iAutoRefreshEveryMinuteInterval);
SetDlgItemText(hDlg,IDC_EDIT_AUTO_REFRESH_INTERVAL,szText);
sprintf(szText,"%d",(AppCFGtemp.socktimeout.tv_sec*1000)+AppCFGtemp.socktimeout.tv_usec);
SetDlgItemText(hDlg,IDC_EDIT_SOCK_TIMEOUT_S,szText);
sprintf(szText,"%d",AppCFGtemp.dwRetries);
SetDlgItemText(hDlg,IDC_EDIT_CFG_RETRIES,szText);
CheckDlgButton(hDlg,IDC_CHECK_XMPP_ACTIVE,AppCFGtemp.bXMPP_Active);
SetDlgItemText(hDlg,IDC_EDIT_XMPP_USERNAME,AppCFGtemp.szXMPP_USERNAME);
SetDlgItemText(hDlg,IDC_EDIT_XMPP_PASSWORD,AppCFGtemp.szXMPP_PASSWORD);
SetDlgItemText(hDlg,IDC_EDIT_XMPP_SERVER,AppCFGtemp.szXMPP_SERVER);
CheckDlgButton(hDlg,IDC_CHECK_BUDDY_NOTIFY,AppCFGtemp.bBuddyNotify);
CheckDlgButton(hDlg,IDC_CHECK_USE_WAV_FILE,AppCFGtemp.bUseBuddySndNotify);
SetDlgItemText(hDlg,IDC_EDIT_WAV_FILE,AppCFGtemp.szNotifySoundWAVfile);
SetDlgItemText(hDlg,IDC_EDIT_MIRC,g_sMIRCoutput.c_str());
CheckDlgButton(hDlg,IDC_CHECK_EXT_ACTIVE,AppCFGtemp.bUse_EXT_APP);
CheckDlgButton(hDlg,IDC_CHECK_EXT_ACTIVE2,AppCFGtemp.bUse_EXT_APP2);
CheckDlgButton(hDlg,IDC_CHECK_MIRC,AppCFGtemp.bUseMIRC);
g_lang.EnumerateLanguage();
for( map<string,string>::iterator ii=g_lang.m_Languages.begin(); ii!=g_lang.m_Languages.end(); ++ii)
{
//.........这里部分代码省略.........