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;//参数名称
CString m_TxtEnglish;//英文
CString m_TxtChinese;//中文
};
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;//英文模式
};
extern CLanguageMgr *gLanguageMgr;