imm32: Implement ImmSetConversionStatus.

This commit is contained in:
ByeongSik Jeon 2008-04-16 19:01:29 +09:00 committed by Alexandre Julliard
parent 9171647204
commit 511753196f
1 changed files with 20 additions and 9 deletions

View File

@ -1761,16 +1761,27 @@ BOOL WINAPI ImmSetCompositionWindow(
BOOL WINAPI ImmSetConversionStatus(
HIMC hIMC, DWORD fdwConversion, DWORD fdwSentence)
{
static int shown = 0;
InputContextData *data = (InputContextData*)hIMC;
if (!shown) {
FIXME("(%p, %d, %d): stub\n",
hIMC, fdwConversion, fdwSentence
);
shown = 1;
}
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
TRACE("%p %d %d\n", hIMC, fdwConversion, fdwSentence);
if (!data)
return FALSE;
if ( fdwConversion != data->IMC.fdwConversion )
{
data->IMC.fdwConversion = fdwConversion;
ImmNotifyIME(hIMC, NI_CONTEXTUPDATED, 0, IMC_SETCONVERSIONMODE);
ImmInternalSendIMENotify(data, IMN_SETCONVERSIONMODE, 0);
}
if ( fdwSentence != data->IMC.fdwSentence )
{
data->IMC.fdwSentence = fdwSentence;
ImmNotifyIME(hIMC, NI_CONTEXTUPDATED, 0, IMC_SETSENTENCEMODE);
ImmInternalSendIMENotify(data, IMN_SETSENTENCEMODE, 0);
}
return TRUE;
}
/***********************************************************************