几个关于语言和区域的函数
2009-11-20 17:26
239 查看
GetUserDefaultUILanguage
This function retrieves the language identifier (LANGID) for the current user's UI language selection.
http://msdn.microsoft.com/en-us/library/aa913797.aspx
SetUserDefaultUILanguage
This function sets the LANGID
for the current user's UI language selection.
http://msdn.microsoft.com/en-us/library/aa915503.aspx
SetLocaleInfo
Sets an item of information in the user override portion of the current locale. This function does not set the system defaults.
Caution
Because this function
modifies values for all applications, it should only be called by the
regional and language options functionality of Control Panel, or a
similar utility. If making an international change to system
parameters, the calling application must broadcast the WM_SETTINGCHANGE
message to avoid causing instabilities in other applications.
http://msdn.microsoft.com/en-us/library/dd374049%28VS.85%29.aspx
GetUserDefaultLCID
Returns the locale identifier
for the user default locale.
Caution
If the user default locale is
a custom locale, an application cannot accurately tag data with the
value or exchange it. In this case, the application should use GetUserDefaultLocaleName
in preference to GetUserDefaultLCID
.
http://msdn.microsoft.com/en-us/library/dd318135%28VS.85%29.aspx
SetUserDefaultLCID
This function sets the locale identifier (LCID
) for the current user.
This updates the user locale and the user locale descriptor.
http://msdn.microsoft.com/en-us/library/bb202902.aspx
上面的东西其实我用过的只有第一个函数,能得到想要的结果。不过这里当作收藏吧,反正能找到的这方面资料较少,防止自己忘记了。
这里写了原创,也不知是不是。反正是自己找出来总结的,不是抄别人的。 如果不是原创范畴,大家别见怪,知道我说明了就好。 谢谢
This function retrieves the language identifier (LANGID) for the current user's UI language selection.
http://msdn.microsoft.com/en-us/library/aa913797.aspx
SetUserDefaultUILanguage
This function sets the LANGID
for the current user's UI language selection.
http://msdn.microsoft.com/en-us/library/aa915503.aspx
SetLocaleInfo
Sets an item of information in the user override portion of the current locale. This function does not set the system defaults.
Caution
Because this function
modifies values for all applications, it should only be called by the
regional and language options functionality of Control Panel, or a
similar utility. If making an international change to system
parameters, the calling application must broadcast the WM_SETTINGCHANGE
message to avoid causing instabilities in other applications.
http://msdn.microsoft.com/en-us/library/dd374049%28VS.85%29.aspx
GetUserDefaultLCID
Returns the locale identifier
for the user default locale.
Caution
If the user default locale is
a custom locale, an application cannot accurately tag data with the
value or exchange it. In this case, the application should use GetUserDefaultLocaleName
in preference to GetUserDefaultLCID
.
http://msdn.microsoft.com/en-us/library/dd318135%28VS.85%29.aspx
SetUserDefaultLCID
This function sets the locale identifier (LCID
) for the current user.
This updates the user locale and the user locale descriptor.
http://msdn.microsoft.com/en-us/library/bb202902.aspx
上面的东西其实我用过的只有第一个函数,能得到想要的结果。不过这里当作收藏吧,反正能找到的这方面资料较少,防止自己忘记了。
这里写了原创,也不知是不是。反正是自己找出来总结的,不是抄别人的。 如果不是原创范畴,大家别见怪,知道我说明了就好。 谢谢
相关文章推荐
- 关于几个常见的可以进行拷贝的函数
- ASP关于编码的几个有用的函数小结(utf8)
- 关于 pgsql 数据库json几个函数用法的效率测试
- 关于几个函数的使用
- 学点 C 语言(41): 函数 - 关于 main 函数
- 介绍几个程序中关于"路径字符串"的函数
- 关于opengl的几个函数
- OpenMP中几个容易混淆的函数(线程数量/线程ID/线程最大数)以及并行区域线程数量的确定
- 学点 C 语言(34): 函数 - 关于变量(auto、static、register、extern、volatile、restrict)
- 共享几个关于正则表达式的函数
- php几个关于安全的函数
- 几个 关于时间 的函数
- 2014-04-17工作日志:关于注册表的几个函数,我的总结。。。
- 几个关于进程的函数
- oracle中关于处理小数点位数的几个函数()
- 关于图像到16进制相互转换的几个函数
- C语言--关于函数
- C语言基础知识(个人简单总结的关于变量和函数方面)
- 关于C51的中断函数要注意的几个问题
- 关于图像合成所引申的几个函数