网站首页  词典首页

请输入您要查询的函数:

 

术语 setthreadlocale
释义 SetThreadLocale
语法:
BOOL SetThreadLocale(
__in LCID Locale
);
SetThreadLocale功能
设置调用线程的当前区域。
参数
区域设置 [in]
区域设置标识符指定的语言环境。您可以使用MAKELCID宏创建一个区域设置标识符或使用下列预定义的值之一。
LOCALE_CUSTOM_DEFAULT
LOCALE_CUSTOM_UI_DEFAULT
LOCALE_CUSTOM_UNSPECIFIED
LOCALE_INVARIANT
LOCALE_SYSTEM_DEFAULT
LOCALE_USER_DEFAULT
返回值
如果成功则返回非零,或否则为0。为了获得更多错误信息,应用程序可以调用GetLastError函数。
备注
当一个线程创建,它使用系统默认的线程区域。操作系统的注册表中读取默认的线程的系统区域设置在启动时。该系统可以修改默认为今后的进程和线程创建使用的区域和语言选项控制面板部分。
SetThreadLocale影响了一种语言的发言资源的选择。声明就会影响的createDialog,DialogBox,LoadMenu,LoadString等功能,并FindResource。它设置的代码页CP_THREAD_ACP暗示的,但不影响FindResourceEx。有关更多信息,请参见代码页标识符。
Windows Vista和更高版本:不要使用SetThreadLocale选择用户界面语言。资源加载选择是在。用语言陈述,或应用程序可以使用FindResourceEx rc文件定义的资源。此外,应用程序可以使用SetThreadUILanguage。
Windows 2000中,Windows XP的:不要使用SetThreadLocale选择用户界面语言。要选择是在。用语言陈述rc文件定义的资源,应用程序必须使用FindResourceEx功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
参见
国家语言支持
国家语言支持功能
GetThreadLocale
GetSystemDefaultLCID
GetUserDefaultLCID
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==SetThreadLocale Function
Sets the current locale of the calling thread.
Syntax
BOOL SetThreadLocale(
__in LCID Locale
);
Parameters
Locale [in]
Locale identifier that specifies the locale. You can use the MAKELCID macro to create a locale identifier or use one of the following predefined values.
LOCALE_CUSTOM_DEFAULT
LOCALE_CUSTOM_UI_DEFAULT
LOCALE_CUSTOM_UNSPECIFIED
LOCALE_INVARIANT
LOCALE_SYSTEM_DEFAULT
LOCALE_USER_DEFAULT
Return Value
Returns nonzero if successful, or 0 otherwise. To get extended error information, the application can call GetLastError .
Remarks
When a thread is created, it uses the system default thread locale. The operating system reads the system default thread locale from the registry when it boots. This system default can be modified for future process and thread creation using the regional and language options portion of the Control Panel.
SetThreadLocale affects the selection of resources with a LANGUAGE statement. The statement affects such functions as CreateDialog , DialogBox , LoadMenu , LoadString , and FindResource . It sets the code page implied by CP_THREAD_ACP, but does not affect FindResourceEx . For more information, see Code Page Identifiers .
Windows Vista and later: Do not use SetThreadLocale to select a user interface language. The resource loader selects the resource that is defined in the .rc file with a LANGUAGE statement, or the application can use FindResourceEx . Additionally, the application can use SetThreadUILanguage .
Windows 2000, Windows XP: Do not use SetThreadLocale to select a user interface language. To select the resource that is defined in the .rc file with a LANGUAGE statement, the application must use the FindResourceEx function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
See Also
National Language Support
National Language Support Functions
GetThreadLocale
GetSystemDefaultLCID
GetUserDefaultLCID
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd374051(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:47