From 6302b965fa840db56c947b1e2f9aea08e0b56d29 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Fri, 29 Jun 2007 11:03:08 -0500 Subject: [PATCH] imm32: Implementation of GCS_CURSORPOS. --- dlls/imm32/imm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index c3763feacdd..9f392c9a5c5 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -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);