Commit 0c9c00cf authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

imm: Report GCS_DELTASTART to help behavior with advanced IME aware applications.

parent a47f47fe
...@@ -287,6 +287,7 @@ static HIMCC updateCompStr(HIMCC old, LPWSTR compstr, DWORD len) ...@@ -287,6 +287,7 @@ static HIMCC updateCompStr(HIMCC old, LPWSTR compstr, DWORD len)
&new_one->dwCompReadStrOffset, TRUE); &new_one->dwCompReadStrOffset, TRUE);
/* new CompAttr, CompClause, CompStr, dwCursorPos */ /* new CompAttr, CompClause, CompStr, dwCursorPos */
new_one->dwDeltaStart = 0;
current_offset = updateField(lpcs->dwResultReadClauseLen, current_offset = updateField(lpcs->dwResultReadClauseLen,
lpcs->dwResultReadClauseOffset, lpcs->dwResultReadClauseOffset,
...@@ -438,6 +439,7 @@ static HIMCC updateResultStr(HIMCC old, LPWSTR resultstr, DWORD len) ...@@ -438,6 +439,7 @@ static HIMCC updateResultStr(HIMCC old, LPWSTR resultstr, DWORD len)
&new_one->dwCompStrOffset, TRUE); &new_one->dwCompStrOffset, TRUE);
new_one->dwCursorPos = lpcs->dwCursorPos; new_one->dwCursorPos = lpcs->dwCursorPos;
new_one->dwDeltaStart = 0;
current_offset = updateField(lpcs->dwResultReadClauseLen, current_offset = updateField(lpcs->dwResultReadClauseLen,
lpcs->dwResultReadClauseOffset, lpcs->dwResultReadClauseOffset,
...@@ -861,6 +863,11 @@ LONG WINAPI ImmGetCompositionStringA( ...@@ -861,6 +863,11 @@ LONG WINAPI ImmGetCompositionStringA(
TRACE("GSC_CURSORPOS\n"); TRACE("GSC_CURSORPOS\n");
rc = compstr->dwCursorPos; rc = compstr->dwCursorPos;
} }
else if (dwIndex == GCS_DELTASTART)
{
TRACE("GCS_DELTASTART\n");
rc = compstr->dwDeltaStart;
}
else else
{ {
FIXME("Unhandled index 0x%x\n",dwIndex); FIXME("Unhandled index 0x%x\n",dwIndex);
...@@ -955,6 +962,11 @@ LONG WINAPI ImmGetCompositionStringW( ...@@ -955,6 +962,11 @@ LONG WINAPI ImmGetCompositionStringW(
TRACE("GSC_CURSORPOS\n"); TRACE("GSC_CURSORPOS\n");
rc = compstr->dwCursorPos; rc = compstr->dwCursorPos;
} }
else if (dwIndex == GCS_DELTASTART)
{
TRACE("GCS_DELTASTART\n");
rc = compstr->dwDeltaStart;
}
else else
{ {
FIXME("Unhandled index 0x%x\n",dwIndex); FIXME("Unhandled index 0x%x\n",dwIndex);
...@@ -1662,7 +1674,7 @@ BOOL WINAPI ImmSetCompositionStringW( ...@@ -1662,7 +1674,7 @@ BOOL WINAPI ImmSetCompositionStringW(
root_context->IMC.hCompStr = newCompStr; root_context->IMC.hCompStr = newCompStr;
wParam = ((const WCHAR*)lpComp)[0]; wParam = ((const WCHAR*)lpComp)[0];
flags |= GCS_COMPCLAUSE | GCS_COMPATTR; flags |= GCS_COMPCLAUSE | GCS_COMPATTR | GCS_DELTASTART;
} }
else else
{ {
......
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