//获取默认的区域语言
if (GetUserDefaultUILanguage() == MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED)) // [中文(简体)]
{
}
//设置当前的进程区域语言
SetThreadUILanguage(MAKELANGID(LANG_ARABIC, SUBLANG_ARABIC_SAUDI_ARABIA)); // [阿拉伯语(沙特阿拉伯)]
SetThreadUILanguage(MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND)); // [波兰语(波兰)]
SetThreadUILanguage(MAKELANGID(LANG_KOREAN, SUBLANG_KOREAN)); // [朝鲜语(韩国)]
SetThreadUILanguage(MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK)); // [丹麦语(丹麦)]
SetThreadUILanguage(MAKELANGID(LANG_GERMAN, SUBLANG_GERMAN)); // [德语(德国)]
SetThreadUILanguage(MAKELANGID(LANG_RUSSIAN, SUBLANG_RUSSIAN_RUSSIA)); // [俄语(俄罗斯)]
SetThreadUILanguage(MAKELANGID(LANG_FRENCH, SUBLANG_FRENCH)); // [法语(法国)]
SetThreadUILanguage(MAKELANGID(LANG_FINNISH, SUBLANG_FINNISH_FINLAND)); // [芬兰语(芬兰)]
SetThreadUILanguage(MAKELANGID(LANG_DUTCH, SUBLANG_DUTCH)); // [荷兰语(荷兰)]
SetThreadUILanguage(MAKELANGID(LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC)); // [捷克语(捷克共和国)]
SetThreadUILanguage(MAKELANGID(LANG_CROATIAN, SUBLANG_CROATIAN_CROATIA)); // [克罗地亚语(克罗地亚)]
SetThreadUILanguage(MAKELANGID(LANG_ROMANIAN, SUBLANG_ROMANIAN_ROMANIA)); // [罗马尼亚语(罗马尼亚)]
SetThreadUILanguage(MAKELANGID(LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL)); // [挪威语、博客马尔语(挪威)]
SetThreadUILanguage(MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN));// [葡萄牙语(巴西)]
SetThreadUILanguage(MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE)); // [葡萄牙语(葡萄牙)]
SetThreadUILanguage(MAKELANGID(LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN)); // [日语(日本)]
SetThreadUILanguage(MAKELANGID(LANG_SWEDISH, SUBLANG_SWEDISH)); // [瑞典语(瑞典)]
SetThreadUILanguage(MAKELANGID(LANG_SERBIAN, SUBLANG_SERBIAN_SERBIA_LATIN)); // [塞尔维亚语(拉丁语,塞尔维亚)]
SetThreadUILanguage(MAKELANGID(LANG_SLOVAK, SUBLANG_SLOVAK_SLOVAKIA)); // [斯洛伐克语(斯洛伐克)]
SetThreadUILanguage(MAKELANGID(LANG_SLOVENIAN, SUBLANG_SLOVENIAN_SLOVENIA)); // [斯洛文尼亚语(斯洛文尼亚)]
SetThreadUILanguage(MAKELANGID(LANG_TURKISH, SUBLANG_TURKISH_TURKEY)); // [土耳其语(土耳其)]
SetThreadUILanguage(MAKELANGID(LANG_UKRAINIAN, SUBLANG_UKRAINIAN_UKRAINE)); // [乌克兰语(乌克兰)]
SetThreadUILanguage(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH_MODERN)); // [西班牙语(西班牙,国际风格)]
SetThreadUILanguage(MAKELANGID(LANG_HEBREW, SUBLANG_HEBREW_ISRAEL)); // [希伯来语(以色列)]
SetThreadUILanguage(MAKELANGID(LANG_GREEK, SUBLANG_GREEK_GREECE)); // [希腊语(希腊)]
SetThreadUILanguage(MAKELANGID(LANG_HUNGARIAN, SUBLANG_HUNGARIAN_HUNGARY)); // [匈牙利语(匈牙利)]
SetThreadUILanguage(MAKELANGID(LANG_ITALIAN, SUBLANG_ITALIAN)); // [意大利语(意大利)]
SetThreadUILanguage(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US)); // [英语(美国)]
SetThreadUILanguage(MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL)); // [中文(繁体,台湾)]
设置当前进程的区域语言
最新推荐文章于 2020-01-16 17:02:26 发布