Re: catching the IHTMLWindow2 onscroll event

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 02/18/05


Date: Fri, 18 Feb 2005 12:43:25 -0500


"Zach" <divisortheory@gmail.com> wrote in message
news:1108745719.511950.250960@l41g2000cwc.googlegroups.com...
>I got it to work, thanks for your help. The only problem I have now is
> that when I change pages or Reload it no longer receives the scroll
> events. This makes partial sense, I suppose, since it's an HTMLWindow
> event and the window is getting reloaded with new information.

In fact, for each new page the Window object is destroyed and a new one
created. You need to handle NaviageComplete2 event from the brower, and
reestablish your sinks.

> Is there another
> way to catch reload events?

See if this helps

http://groups-beta.google.com/group/microsoft.public.windows.inetexplorer.ie5.programming.components.webbrowser_ctl/browse_frm/thread/9bafed06aa357ad/b72dd7341ef3f632

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