mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[IMM32] Rewrite ImmGetConversionStatus (#3790)
Implementing Japanese input... CORE-11700
This commit is contained in:
parent
6b0cdceda0
commit
c238b554b1
1 changed files with 18 additions and 0 deletions
|
@ -1641,6 +1641,23 @@ DWORD WINAPI ImmGetConversionListW(
|
||||||
BOOL WINAPI ImmGetConversionStatus(
|
BOOL WINAPI ImmGetConversionStatus(
|
||||||
HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence)
|
HIMC hIMC, LPDWORD lpfdwConversion, LPDWORD lpfdwSentence)
|
||||||
{
|
{
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
LPINPUTCONTEXT pIC;
|
||||||
|
|
||||||
|
TRACE("ImmGetConversionStatus(%p %p %p)\n", hIMC, lpfdwConversion, lpfdwSentence);
|
||||||
|
|
||||||
|
pIC = ImmLockIMC(hIMC);
|
||||||
|
if (!pIC)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
if (lpfdwConversion)
|
||||||
|
*lpfdwConversion = pIC->fdwConversion;
|
||||||
|
if (lpfdwSentence)
|
||||||
|
*lpfdwSentence = pIC->fdwSentence;
|
||||||
|
|
||||||
|
ImmUnlockIMC(hIMC);
|
||||||
|
return TRUE;
|
||||||
|
#else
|
||||||
InputContextData *data = get_imc_data(hIMC);
|
InputContextData *data = get_imc_data(hIMC);
|
||||||
|
|
||||||
TRACE("%p %p %p\n", hIMC, lpfdwConversion, lpfdwSentence);
|
TRACE("%p %p %p\n", hIMC, lpfdwConversion, lpfdwSentence);
|
||||||
|
@ -1654,6 +1671,7 @@ BOOL WINAPI ImmGetConversionStatus(
|
||||||
*lpfdwSentence = data->IMC.fdwSentence;
|
*lpfdwSentence = data->IMC.fdwSentence;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL needs_ime_window(HWND hwnd)
|
static BOOL needs_ime_window(HWND hwnd)
|
||||||
|
|
Loading…
Reference in a new issue