Re: Pointer to IHTMLWindow2 inside Passthru APP using back/forward, refresh
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 5 Mar 2007 22:18:37 -0500
"Max K." <maxkl@xxxxxxxxxxxxx> wrote in message
news:1173150406.609019.160200@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am using Igor's Passthru APP. I need to get pointers to
IHTMLWindow2 to access DOM inside IHTTPNegotiate::OnResponse()
method. I am calling QueryService for IHTMLWindow2 on given target
IInternetProtocolSink (which I get in start method).
I'm surprised it has worked for you with any reliability. In my
experience, it works quite rarely.
I don't know any good, easy way to get from APP to the document that
requested the navigation. The best approach I've discovered so far is
described here:
http://groups.google.com/group/microsoft.public.inetsdk.programming.webbrowser_ctl/browse_frm/thread/3a255f3cf3f827df
This gives you HWND of MSHTML window: it usually requires external help
(e.g. from the application that registered the APP in the first place)
to map this HWND to, say, IHTMLWindow2 pointer.
--
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:
- References:
- Prev by Date: Re: a problem about the controls on the html page with IWebBrowser2
- Next by Date: Re: axWebBrowser and javascript errors
- Previous by thread: Pointer to IHTMLWindow2 inside Passthru APP using back/forward, refresh
- Next by thread: Re: Pointer to IHTMLWindow2 inside Passthru APP using back/forward, refresh
- Index(es):