does not work IME in Windows8

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

does not work IME in Windows8

Postby shines7 » Thu Mar 19, 2015 2:48 am

hello, i'm korean.
I have a problem with the IME in Windows8.

cef version : 3.1750.1738


I input text in my browser, and then executes filedialog.
After, can't input the korean. Only can input english.
When this problem occurs, i open new browser. Then i can input the korean.

So. i did code IME, that change the english to korean.(or korean to english)
but it is not work.
Othre program is work.(without cefbrowser)

Please suggest ways to solve this problem.
thank you.

//It's IME code.
BOOL IME_SetHangulMode(HWND hwnd)
{
BOOL bRet = FALSE;
HWND hFocusWnd = hwnd;

//--- IME context
HIMC hIMC = NULL;
if (hIMC = ImmGetContext(hFocusWnd))
{
//--- IME
DWORD fdwConversion, fdwSentence;
bRet = ImmGetConversionStatus(hIMC, &fdwConversion, &fdwSentence);
if(bRet)
{
if(fdwConversion & IME_CMODE_LANGUAGE)
{
//korean to english
ImmSetConversionStatus(hIMC,IME_CMODE_ALPHANUMERIC, IME_SMODE_NONE);
}
else
{
//english to korean
ImmSetConversionStatus(hIMC,IME_CMODE_HANGUL, IME_SMODE_NONE);
}
}
else
{

}
//--- release context
ImmReleaseContext(hFocusWnd, hIMC);
}

return bRet;
}
shines7
Newbie
 
Posts: 9
Joined: Mon Mar 24, 2014 12:41 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 69 guests