// Language.h: interface for the CLanguage class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_LANGUAGE_H__1FDF1B00_315B_49BB_BB9D_B4B82ED592DE__INCLUDED_) #define AFX_LANGUAGE_H__1FDF1B00_315B_49BB_BB9D_B4B82ED592DE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class EXPORT_CLASS CLanguage { typedef int Def_Translate(const char* pOrg, char* pRtn, int nSize); typedef void Def_Init(HWND hMainFrame); typedef void Def_Free(); public: virtual ~CLanguage(); static BOOL LoadDll(); static void FreeDll(); static CString GetCurLanguage(CString strOrigTxt); static void InitLanguage(HWND hWnd); static void FreeLanguage(); static int ShowMessageBox(LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0); static int ShowMessageBoxEx(LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0); static int ShowMessageBox(UINT nIDPrompt, UINT nType = MB_OK, UINT nIDHelp = (UINT)-1); protected: CLanguage(); static CLanguage m_self; CMapStringToString m_mapWords; HMODULE m_hDll; Def_Translate* m_pfTranslate; Def_Init* m_pfInit; Def_Free* m_pfFree; }; #endif // !defined(AFX_LANGUAGE_H__1FDF1B00_315B_49BB_BB9D_B4B82ED592DE__INCLUDED_)