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

Hosting WebControl in hidden window

1 view
Skip to first unread message

Alex

unread,
Aug 14, 2001, 8:14:22 PM8/14/01
to
How to forward window messages from one window to window
that hosts WebBrowser control?

I have to host IWebBrowser2 in separate hidden window. My
app main window has same size as browser window host.
When I post messages (all mouse messages) from my main
app window to WebBrowser it does not do anything. (Mouse
klicks and moves do not change anything fo me).

I was trying Host Window handler, it child, and it child
child (WebBrowser ctl itself). Nothing. :(

Any suggestions?

Thanks

Konstantin Romanov

unread,
Aug 15, 2001, 7:02:15 AM8/15/01
to
Find a descendant window of WebBrowser ActiveX control which has class name
"Internet Explorer_Server" and send messages to it.

--
SY
Konstantin Romanov
http://www.spbteam.com/rk


"Alex" <agol...@lumenati.com> wrote in message
news:e60d01c1251f$3c44f2d0$a4e62ecf@tkmsftngxa06...

Konstantin Romanov

unread,
Aug 15, 2001, 9:05:00 AM8/15/01
to
By the way: thank you for reminding me this problem. I'm now trying to
remember such things related to implementing a web style user interface to
create something like FAQ.

--
SY
Konstantin Romanov
http://www.spbteam.com/rk


"Konstantin Romanov" <r...@tepkom.ru> wrote in message
news:O5glvIXJBHA.1644@tkmsftngp03...

Alex

unread,
Aug 15, 2001, 2:19:25 PM8/15/01
to
Thanks, it helped. But now WebBrowser window stills focus
all the time from my app main window. I have to get it
back. It makes app look funky. Do you know how to preven
IE window from taking focus and still do it's job?

Thanks again
Alex

>.
>

Konstantin Romanov

unread,
Aug 16, 2001, 9:25:03 AM8/16/01
to
If you control the HTML content being displayed in your control, I can
suggest the following:
process onfocus event of HTML objects which can receive the focus this way:

onfocus="this.blur()"

Maybe its too straightforward, but should work.

Another possibility could be to now give away focus from controls in your
application if the new window
is WebBrowser control window (or one of its children). But I haven't ever
tried this approach - sometimes its too complex to implement it because you
have to track all controls in your application.

--
SY
Konstantin Romanov
http://www.spbteam.com/rk


"Alex" <agol...@lumenati.com> wrote in message

news:eb6d01c125b6$d0632a80$a4e62ecf@tkmsftngxa06...

0 new messages