Home All Groups Group Topic Archive Search About

How to move the IME window?

Author
9 Mar 2007 1:18 AM
Lloyd Dupont
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?

Author
18 Mar 2007 11:51 AM
<ct>
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
Show quote
"Lloyd Dupont" <net.galador@ld> wrote in message
news:umzicjeYHHA.3824@TK2MSFTNGP02.phx.gbl...
>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?
>
Author
18 Mar 2007 11:27 PM
Lloyd Dupont
Thanks Carsten, that's good stuff!

Show quote
"<ct>" <carstentATintegratedsolutions.dk> wrote in message
news:%23CCbJPVaHHA.3584@TK2MSFTNGP02.phx.gbl...
> 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:umzicjeYHHA.3824@TK2MSFTNGP02.phx.gbl...
>>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?
>>
>
>

AddThis Social Bookmark Button