Commit aaf67e9e authored by Hongbo Ni's avatar Hongbo Ni Committed by Alexandre Julliard

user32: Implement WM_UNICHAR for edit control.

parent deb49f6f
......@@ -860,6 +860,24 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg,
break;
}
case WM_UNICHAR:
if (unicode)
{
if (wParam == UNICODE_NOCHAR) return TRUE;
if (wParam <= 0x000fffff)
{
if(wParam > 0xffff) /* convert to surrogates */
{
wParam -= 0x10000;
EDIT_WM_Char(es, (wParam >> 10) + 0xd800);
EDIT_WM_Char(es, (wParam & 0x03ff) + 0xdc00);
}
else EDIT_WM_Char(es, wParam);
}
return 0;
}
break;
case WM_CLEAR:
EDIT_WM_Clear(es);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment