MFC program chinese UI
- Multiple language support for MFC applications with extension DLL
http://www.codeproject.com/KB/locale/MultiLangSupportMFCExtDLL.aspx
关于Build Resource-only Language DLL
All word "AFX_TARG_DEU" to "AFX_TARG_ENU".
All word "LANG_GERMAN, SUBLANG_GERMAN" to "LANG_ENGLISH, SUBLANG_ENGLISH_US".
"code_page(1252)" to "code_page(1252)"
Under Resources tab change Language to English (United States)
add "/NOENTRY" for both release and debug configuration
关于Detect OS UI Language settings
看代码,需要区分是否支持MUI, Windows 9x or NT4
The current user's default language, as returned from the GetUserDefaultLangID() Win32 API.
The system's default language, as returned from the GetSystemDefaultLangID() Win32 API.
切换语言
hLangDLL = ::LoadLibrary(szResDLLName);
AfxSetResourceHandle( ghLangInst );
关于Code Pages Supported by Windows
http://msdn.microsoft.com/zh-CN/goglobal/bb964654.aspx
932 (Japanese Shift-JIS)
936 (Simplified Chinese GBK)
949 (Korean)
950 (Traditional Chinese Big5)
关于预设字体
http://cpatch.org/kiiali/theo/mui/font_choices2.htm
0404, CHT, 繁體中文, 預設為 "PMingLiU" 新細明體 9, code_page 950
/////////////////////////////////////////////////////////////////////////////
// Chinese (Taiwan) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHT)
#ifdef _WIN32
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
#pragma code_page(950)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
1 DIALOG
STYLE WS_CHILD | WS_CAPTION
CAPTION "PLACERHOLDER TEXT"
FONT 9, "新細明體"
0804, CHS, 簡體中文, 預設為 "SimSun" 9, code_page 936
////////////////////////////////////////////////////////////////////////////
// Chinese (P.R.C.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
#ifdef _WIN32
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
#pragma code_page(936)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
1 DIALOG
STYLE WS_CHILD | WS_CAPTION
CAPTION "PLACERHOLDER TEXT"
FONT 9, "冼极"
MFC program chinese UI
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
MFC UI多线程
void CUIThreadDlg::OnClose() { // TODO: Add your me
多线程 mfc ui initialization class -
static Program()
using System;using System.
System Linq Text -
mfc ui2
引用:http://www.cnblogs.com/likwo/archive/2010/10/22/1858716.htmlCJLib(mfc扩展开发包,是xtreme toolkit的前生,
程序语言--------C++ 界面库 加载 控件 菜单项 -
mfc ui3
本文专题讨论VC中的界面美化,适用于具有中等VC水平的读者。读者最好具有以下VC基础:1.大致了解MFC框架的基本运作原理;2.熟悉Windows消息机制,熟悉MFC的消息映射和反射机制;
程序语言--------C++ 控件 菜单项 列表框 查看源代码 -
常见MFC UI界面库c++ html 3d 控件 贴图