Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Custom SWT HtmlControl Widget using CAXWindow does not receive TAB and ENTER keys (Accelarators)

11 views
Skip to first unread message

Keyur Patel

unread,
Sep 22, 2010, 4:13:30 PM9/22/10
to

I have written a Custom SWT widget to show a Custom HTML Control for
Desktop by Hosting the Html Windows in CAXWindow.
The SWT widget gives me a handle to the parent window and i redraw my
HtmlControl at position/size specified by SWT.

But when a TAB or Enter Key is Pressed when my Control is in Focus, i
dont get the key events.
I get a onKeyPress Dom Event using javascript on the html page.

I have read articles describing a similar problem , but in most cases
they talk about intercepting the message Loop and calling
IOleInPlaceActiveObject->TranslateAccelerator of the IWebBrowser2
Object.
But in my case i dont have the MessageLoop since SWT handles all
Window Messages.

Is there a way to get the Key Events from my CAXWindow without using a
MessageLoop, so i can call TranslateAccelarator on
IOleInPlaceActiveObject. ?

My class implements CWindowImpl and in the OnCreate() method i create
a CAXWindow and host a IWebBrowser2

Thanks in advance

0 new messages