Re: Multiple Instances Hosted



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
>
>


.



Relevant Pages

  • Re: how do I publish databse to a web site
    ... Joe, if you'll pardon the expression. ... Access running on the server but displayed in a browser window on the user's ... I would like to have the front end accessed thru a IE web browser and have ...
    (microsoft.public.access.externaldata)
  • Re: Hmmmm, strange ?
    ... Using a combination of 2 different HTML Editors to Write & Edit ... it's also wider than my Browser Window (I normally don't use ... more than about 1238 Pixels (+ the Width of the ScrollBar & the Window ... not everybody happens to use their Web Browser Open at Full ...
    (uk.people.silversurfers)
  • Re: "Glueing" grapchic with inline text together?
    ... the lines of text wrap before the text separates from the ... images when I make the browser window narrower. ... I get a horizontal scrollbar only when the window is so ... I use Mozilla as my Web browser because I want a browser that ...
    (comp.infosystems.www.authoring.html)
  • Re: HTML links in e-mail
    ... Internet Shortcuts in Outlook Express Do Not Start Web Browser ... Dave Patrick ....Please no email replies - reply in newsgroup. ... | not get them to open a new browser window when I click on them. ...
    (microsoft.public.win2000.general)