The IsWindowUnicode function determines whether the specified window is a native Unicode window.
BOOL IsWindowUnicode(
HWND hWnd |
// handle of window |
); |
If the window is a native Unicode window, the return value is nonzero.
If the window is not a native Unicode window, the return value is zero.
The system does automatic two-way translation (Unicode to ANSI-ASCII) for window messages. For example, if an ANSI-ASCII window message is sent to a Unicode window, the system translates that message into a Unicode message before calling the window procedure. The system calls the IsWindowUnicode function to determine whether to translate the message.
When this function returns zero, the window is a native ANSI-ASCII window.