473,320 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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?
Mar 9 '07 #1
2 1238
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/de.../ime_8awc.asp),
and the IMC_SETCOMPOSITIONWINDOW
(http://msdn.microsoft.com/library/de...l/ime_8wjb.asp)
and the COMPOSITIONFORM structure,
http://msdn.microsoft.com/library/de...l/ime_8vle.asp
as parameters.

--
Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS
"Lloyd Dupont" <net.galador@ldwrote in message
news:um**************@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?

Mar 18 '07 #2
Thanks Carsten, that's good stuff!

"<ct>" <carstentATintegratedsolutions.dkwrote in message
news:%2****************@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/de.../ime_8awc.asp),
and the IMC_SETCOMPOSITIONWINDOW
(http://msdn.microsoft.com/library/de...l/ime_8wjb.asp)
and the COMPOSITIONFORM structure,
http://msdn.microsoft.com/library/de...l/ime_8vle.asp
as parameters.

--
Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS
"Lloyd Dupont" <net.galador@ldwrote in message
news:um**************@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?


Mar 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jason Stacy | last post by:
On a webpage I would like to move image1.jpg as left as possible (directly to the browser window left border) and - simultaneously - the picture image2.jpg to the rightmost (directly to the right...
0
by: Stefan De Schepper | last post by:
Hi all, Combobox.DropDownStyle = DropDown I want to move the edit window of a combobox (I want to place an icon before the text). When using MoveWindow, the window does move, but text won't be...
2
by: Jurate | last post by:
I want my window not to have title bar, but then the problem arises, how to move such a window. Is it possible to make window move by moving mouse anywhere on that window? -- Jurate
0
by: kamal | last post by:
Hi all, I am working on a project in which I have a toolbox window with many objects. In this project, I must be able to drag and drop an object from this toolbox window to another window. Once...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
1
by: Todd7 | last post by:
I am writing a python program to load a pdf file into an IEHtmlWindow which displays it through adobe acrobat reader 7. Depending on the buttons the user clicks, the program moves it to another...
1
by: OtisUsenet | last post by:
Hello, Is there a way to use JavaScript to push a page element (a DIV block, for example) down the screen, so it sits at the bottom of the browser window. For example of a bad footer...
8
by: Doron Farber | last post by:
Hi All, How can I Move the Server explorer window to the left. When ever I double click on the Server explorer top window it goes to the bottom of the IDE. Thanks, Doron
2
by: qhimq | last post by:
To download source and executable: https://netfiles.uiuc.edu/qmitche2/www/mouse/ #include <windows.h> //#include <stdio.h> // Variables HWND hwndMain; // Main window HWND // Functions
1
by: yash777 | last post by:
actually, i updated database with pop up window and after updation i have to move back to the parent window. i solved the first question by closing the popup window. but how refresh the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.