Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to move the IME window?

0 views
Skip to first unread message

Lloyd Dupont

unread,
Mar 8, 2007, 8:18:33 PM3/8/07
to
I have developed a text editor supporting international languages.
One problem still bother me: The location of the IME window.

When I have an asian user entering asian characters, (s)he does so through
an IME window which is located in a seemingly unpredictable/uncontrollable
location.

Is there a way I could set the location, size, and font (or at least font
size) used by this IME window?
How could I know when it is used or not?


<ct>

unread,
Mar 18, 2007, 7:51:36 AM3/18/07
to
AFAIK, there's no way to do it with native code as this is OS controlled.
However, you can use the SendMessage Win32 API call, with the WM_IME_CONTROL
message
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/ime_8awc.asp),
and the IMC_SETCOMPOSITIONWINDOW
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/ime_8wjb.asp)
and the COMPOSITIONFORM structure,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/ime_8vle.asp
as parameters.

--
Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS
"Lloyd Dupont" <net.galador@ld> wrote in message
news:umzicjeY...@TK2MSFTNGP02.phx.gbl...

Lloyd Dupont

unread,
Mar 18, 2007, 7:27:11 PM3/18/07
to
Thanks Carsten, that's good stuff!

"<ct>" <carstentATintegratedsolutions.dk> wrote in message
news:%23CCbJPV...@TK2MSFTNGP02.phx.gbl...

0 new messages