IsWindowUnicode 函数 (winuser.h)
确定指定的窗口是否为本机 Unicode 窗口。
语法
BOOL IsWindowUnicode(
[in] HWND hWnd
);
参数
[in] hWnd
类型:HWND
要测试的窗口的句柄。
返回值
类型: BOOL
如果窗口是本机 Unicode 窗口,则返回值为非零。
如果窗口不是本机 Unicode 窗口,则返回值为零。 该窗口是本机 ANSI 窗口。
注解
窗口的字符集由 RegisterClass 函数的使用决定。 如果窗口类已注册到 RegisterClass (RegisterClassA 的 ANSI 版本) ,则窗口的字符集为 ANSI。 如果窗口类已注册到 RegisterClass 的 Unicode 版本 (RegisterClassW) ,则窗口的字符集为 Unicode。
系统对窗口消息执行自动双向转换 (Unicode 到 ANSI) 。 例如,如果将 ANSI 窗口消息发送到使用 Unicode 字符集的窗口,系统会在调用窗口过程之前将该消息转换为 Unicode 消息。 系统调用 IsWindowUnicode 以确定是否转换消息。
要求
最低受支持的客户端 | Windows 2000 Professional [仅限桌面应用] |
最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] |
目标平台 | Windows |
标头 | winuser.h (包括 Windows.h) |
Library | User32.lib |
DLL | User32.dll |
API 集 | 在 Windows 8.1) 中引入的 ext-ms-win-ntuser-window-l1-1-1 ( |