Game Development Community

Help me with IME

by game4Rest · in Torque Game Engine · 07/20/2006 (10:24 pm) · 1 replies

Hello all?

So far, I've found out where and what to do to support Unicode chatting. But I have an issue that I can't handle for the life of me.

My IME is MS IME-2002. Strange thing is when the focus is on the other window, when I press Korean/English change key, it works great. But when the focus is on torque window, it never works. As a result, no WM_IME_COMPOSITION like message is generated. I've tried to convert the language mode with some code in vain.

void CMyClass::SetHanMode(HWND hWnd) 

{ 

    HIMC hIMC = ImmGetContext(hWnd); 
    DWORD dwConv, dwSent; 
    DWORD dwTemp; 

   ImmGetConversionStatus(hIMC,&dwConv,&dwSent); 

    dwTemp = dwConv & ~IME_CMODE_LANGUAGE; 

    // change mode 
    dwTemp |= IME_CMODE_NATIVE; 
    dwConv = dwTemp; 
    ImmSetConversionStatus(hIMC,dwConv,dwSent); 
    ImmReleaseContext(hWnd,hIMC); 
}

So, my question is how can I make TGE generate IME message. Is it related in IME in Windows? If so, how can I make it work in torque? If not, how can torque know that IME message is generated?

I know my case can be a beginning step to solve the chatting problem for Korea, Japan, China. So, please
help me. Please shed some light on me.

Thank you.

Hong Jin

edit : spell

#1
08/09/2006 (6:54 am)
Well, for anyone who wants to know the result, I'd like to say that everythings are ready there to be used
for chatting. It was just a matter of set true/false and adding some lines of code.

I'd like to make it a resource if people wants.

Cheers!

Hongjin