Re: Multiple Instances Hosted
- From: "Apurva Lawale" <apudeepa_at_pacific.net.sg>
- Date: Sat, 10 Dec 2005 02:43:32 +0800
Thanks for replying.
There is a 3rd Party App. I am making a dll which has functions to create a
web browser window , so that the window can be hosted in a third party app.
I am supposed to detect key strokes in the browser window. Currently I am
using hooks (SetWindowsHookEx). Now, there could be upto 4 browser windows
that could be created using the dll and hosted on the 3rd party app.
I am not sure if hooks is the right way to detect the events in the third
party app. I am currently passing WM_KEYUP and WM_KEYDOWN messages from the
hook procedure to a window procedure.
The problem however is the latest browser window created gets the all the
messages and the previous browser window hosted do not get the messages
anymore.
Also when I click on any of the browser window hosted that window should be
able to detect what keys i have used example like TABs or ENTER. This does
not happen.
I have tried using WM_PARENTNOTIFY and it seems that when i click on any of
the browser windows hosted i can detect which one was clicked.
How do I correctly setup my hook procedure for multiple browser windows?
Any help appreciated.
A.L.
"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:%23hCfQuO$FHA.3308@xxxxxxxxxxxxxxxxxxxxxxx
> Apurva Lawale <apudeepa_at_pacific.net.sg> wrote:
>> I am detecting key events WM_KEYUP and WM_KEYDOWN. Works great if
>> there is a single instance of the web browser control hosted on my
>> app. But, when two instances are hosted I can't seem to detect the
>> keypress in the first instance.
>
> How are you are detecting them? What are you detecting them for? What are
> you trying to do once you detected them?
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>
>
.
- Follow-Ups:
- Re: Multiple Instances Hosted
- From: Igor Tandetnik
- Re: Multiple Instances Hosted
- References:
- Multiple Instances Hosted
- From: Apurva Lawale
- Re: Multiple Instances Hosted
- From: Igor Tandetnik
- Multiple Instances Hosted
- Prev by Date: Re: Web browser other language development
- Next by Date: Re: Multiple Instances Hosted
- Previous by thread: Re: Multiple Instances Hosted
- Next by thread: Re: Multiple Instances Hosted
- Index(es):
Relevant Pages
|