imm32: Implementation of GCS_CURSORPOS.

This commit is contained in:
Aric Stewart 2007-06-29 11:03:08 -05:00 committed by Alexandre Julliard
parent b28c41f107
commit 6302b965fa

View file

@ -590,6 +590,13 @@ LONG WINAPI ImmGetCompositionStringA(
}
rc = sizeof(DWORD)*2;
}
else if (dwIndex == GCS_CURSORPOS)
{
TRACE("GSC_CURSORPOS\n");
rc = WideCharToMultiByte(CP_ACP, 0, (LPWSTR)data->CompositionString,
data->dwCompStringLength/ sizeof(WCHAR), NULL,
0, NULL, NULL);
}
else
{
FIXME("Unhandled index 0x%x\n",dwIndex);
@ -667,6 +674,11 @@ LONG WINAPI ImmGetCompositionStringW(
rc = data->dwCompReadStringSize;
}
else if (dwIndex == GCS_CURSORPOS)
{
TRACE("GSC_CURSORPOS\n");
rc = data->dwCompStringLength;
}
else
{
FIXME("Unhandled index 0x%x\n",dwIndex);