You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
936 B
C

#pragma once
#include "module.h"
class CLanguageTxt
{
public:
CLanguageTxt(void)
{
};
public:
CString m_TxtName;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
CString m_TxtEnglish;//Ӣ<><D3A2>
CString m_TxtChinese;//<2F><><EFBFBD><EFBFBD>
};
class CLanguageMgr :public CModule
{
public:
CLanguageMgr(void);
~CLanguageMgr(void);
virtual MODULE GetModuleType(){return _LANGUAGE_PORP;};
virtual CMFCPropertyGridProperty *CreatGridProperty();
virtual CString GetParDirName(){return "LanguageMgr";};
virtual void OnPropertyChanged();
virtual void OnAppInitialize();
CString GetLanguageTxt(CString TxtName);
private:
void UpdateLanguageTxt();
void InitLanguageTxt();
private:
vector<CLanguageTxt> m_LanguageTxtVec;
bool m_bEnglishMode;//Ӣ<><D3A2>ģʽ
};
extern CLanguageMgr *gLanguageMgr;