Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,461 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I use ImmSetOpenStatus() to open/close Input Method Editor (IME). ImmSetOpenStatus() work correctly in previous version of IME in Windows 10. However, ImmSetOpenStatus() does not work in the lastest IME on Windows 11. May you tell the reason?
This is my code:
if (status == FALSE) // Close IME
{
//turn off IME and conversion mode
dwConversion = IME_CMODE_FULLSHAPE | IME_CMODE_ALPHANUMERIC;
ImmSetConversionStatus(hIMC, dwConversion, 0);
ImmSetOpenStatus(hIMC, FALSE);
}
else // Open IME
{
//set conversion mode
switch (GetCurrentLanguageCode())
{
case JP:
dwConversion = IME_CMODE_JAPANESE;
ImmSetConversionStatus(hIMC, dwConversion, 0);
ImmSetOpenStatus(hIMC, TRUE);
break;
case CN:
dwConversion = IME_CMODE_CHINESE;
ImmSetConversionStatus(hIMC, dwConversion, 0);
ImmSetOpenStatus(hIMC, TRUE);
break;
case KR:
dwConversion = IME_CMODE_ROMAN | IME_CMODE_FULLSHAPE | IME_CMODE_HANGUL;
ImmSetConversionStatus(hIMC, dwConversion, 0);
ImmSetOpenStatus(hIMC, TRUE);
break;
default:
break;
}
}
Hello @Tuan Le Hoang Anh,
I can reproduce using the halfime sample. You can Send feedback to Microsoft with the Feedback Hub app about the concern or open an incident at https://developer.microsoft.com/en-us/windows/support/?tabs=Contact-us if it has a big impact on you.
For an incident, please choose the 'Desktop app UI development - Localization and Globalization API' for Windows SDK for this issue. In-addition, if the support engineer determines that the issue is the result of a bug the service request will be a no-charge case and you won't be charged.