SetWindowText() was doing ANSI conversion.

This commit is contained in:
Unknown W. Brackets 2012-12-03 07:57:28 -08:00
parent ad59c7f46d
commit 346095d5f0

View File

@ -53,7 +53,8 @@ void WindowsHost::SetWindowTitle(const char *message)
if (size > 0)
{
utf16_title[size] = 0;
SetWindowTextW(mainWindow_, utf16_title);
// Don't use SetWindowTextW because it will internally use DefWindowProcA.
DefWindowProcW(mainWindow_, WM_SETTEXT, 0, (LPARAM) utf16_title);
delete[] utf16_title;
}
}