|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to move the IME window?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? 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. -- Show quoteCarsten 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? > 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? >> > > |
|||||||||||||||||||||||