00001
00002
00003
00004
00005
00006 #include "stdafx.h"
00007 #include "FdmApp.h"
00008 #include "fsMFCLangMgr.h"
00009
00010 #ifdef _DEBUG
00011 #undef THIS_FILE
00012 static char THIS_FILE[]=__FILE__;
00013 #define new DEBUG_NEW
00014 #endif
00015
00016 fsMFCLangMgr::fsMFCLangMgr()
00017 {
00018
00019 }
00020
00021 fsMFCLangMgr::~fsMFCLangMgr()
00022 {
00023
00024 }
00025
00026 void fsMFCLangMgr::ApplyLanguage(CDialog *dlg, fsDlgLngInfo *lnginfo, int cInfo, UINT uIDStrTitle)
00027 {
00028 while (cInfo--)
00029 {
00030 if (lnginfo [cInfo].bAddColon == FALSE)
00031 {
00032 dlg->SetDlgItemText (lnginfo [cInfo].nCtrlID, LS (lnginfo [cInfo].nIDStr));
00033 }
00034 else
00035 {
00036 CString str = LS (lnginfo [cInfo].nIDStr);
00037 str += ':';
00038 dlg->SetDlgItemText (lnginfo [cInfo].nCtrlID, str);
00039 }
00040 }
00041
00042 if (uIDStrTitle)
00043 dlg->SetWindowText (LS (uIDStrTitle));
00044 }