Aric Stewart : imm32: Implementation of GCS_CURSORPOS.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 2 09:52:05 CDT 2007
Module: wine
Branch: master
Commit: 6302b965fa840db56c947b1e2f9aea08e0b56d29
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6302b965fa840db56c947b1e2f9aea08e0b56d29
Author: Aric Stewart <aric at codeweavers.com>
Date: Fri Jun 29 11:03:08 2007 -0500
imm32: Implementation of GCS_CURSORPOS.
---
dlls/imm32/imm.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index c3763fe..9f392c9 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);
More information about the wine-cvs
mailing list