How to move the IME window?

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

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?
 
Thanks Carsten, that's good stuff!

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top