473,408 Members | 1,734 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,408 software developers and data experts.

AxWebBrowser and IME issue

Hi

My project is a plug-in to Visual Studio. I have a painter class inherits from SHDocVw.AxWebBrowser class and uses mshtml interfaces. Painter is used to create GUI elements. I am facing set of pblms when I use IME.

I am getting all the IME related msges in IHTMLEventObj.PrehandleEvent like startComposition, notify, IMERequest, endComposition everything. But i'm not able to process anything within it. For eg. When I try to use Microsoft's IME composition window it's not popping up....
Could you please let me know how to use IME in WebBrowser.

The sample code runs as follow....
Expand|Select|Wrap|Line Numbers
  1. if (state == 8 && inEvtDispId == 0 && pIEventObj.type == "startComposition")
  2. {
  3.     IntPtr hImc = WindowsAPI.ImmGetContext(this.htmlControl.Handle);
  4.  
  5.     if (hImc != null)
  6.     {
  7.         hImc = WindowsAPI.ImmAssociateContext(this.htmlControl.Handle, hImc);
  8.     }
  9.     WindowsAPI.COMPOSITIONFORM cf = new WindowsAPI.COMPOSITIONFORM();
  10.  
  11.     cf.dwStyle = 2;
  12.     cf.ptCurrentPos = new WindowsAPI.POINTAPI();
  13.     cf.ptCurrentPos.x = 700;
  14.     cf.ptCurrentPos.y = 700;
  15.     bool setcom = WindowsAPI.ImmSetCompositionWindow(hImc, ref  cf);
  16.  
  17.     WindowsAPI.ImmReleaseContext(hImc, this.htmlControl.Handle);
  18.  
  19.     isCreatingLabel = true;
  20.  
  21.     return;
  22. }
  23. // When 'endComposition', we should create a label on the painter
  24. else if (isCreatingLabel && pIEventObj.type == "endComposition")
  25. {
  26.     CreateLabel(pIEventObj);
  27. }
  28.  
Jun 30 '10 #1
1 1415
is there any buddies can reply my question .....
Jul 1 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a...
4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
1
by: antoine Veret | last post by:
Hi, is there changes on axWebBrowser with framework 1.1 ? events doesn't fire for this object. and an other question; how release memory for axWebBrowser object ? when i create those objects,...
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
1
by: SPG | last post by:
Hi, I have an app that requires several of the web controls to be shown in an MDI form. In most cases I can show these forms and point them all to different URLS fine. Every now and then,...
3
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the...
5
by: ISdotNET | last post by:
Hi there, I am new to this board and would first of all like to wish you all Happy Hollidays. As most new users, I joined because I have an issue (problem). I am using VB.NET in a windows app...
5
by: Thom Little | last post by:
I have a windows application that has an update form that uses AxWebBrowser to connect to a distribution site. This site uses a Response.Redirect to download of either a .msi file or a .zip file....
4
by: pgmanno | last post by:
Hello all, Here is my question. I have an AxWebBrowser (hereafter refered to as "Browser") control framed in a smart client. The smart client requires logon, and the web app that the Browser...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.