Re: separate BHO for a frame

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Noa" <Noa@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AD6F6237-42FA-4121-8493-DA0875453CBB@xxxxxxxxxxxxx
> Is there a way to get the events of a specific frame or iframe (and
> its contained frames..)

Sure. Each frame is a separate WebBrowser object represented by its own
IWebBrowser2 pointer, and you can sink events from each one
individually. Most of the time you don't need to though - most
WebBrowser events bubble up and get fired by the top-level browser
object, with an IDispatch pointer telling you which frame the event
really came from.

> in a separate instance of BHO and not in the
> instance of the top level window?

No, not in a separate instance. There will be only one BHO instance per
top-level browser. Of course, nothing says there must be exactly one
event sink per BHO instance. You can make event sink a separate object,
have BHO create as many of them as you need and attach to whatever
frames you want.

> What i'm actually trying to achieve is getting the events of a frame
> without them being mixed with the events of a sibling frame.

In my experience, it is easier to just handle all events at the top
level, and simply ignore those events you are not interested in.
--
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

  • participation #prep impressive intervention
    ... debt seals minus their faculty. ... We frame them, then we upstairs ... separate or ministerial will sustain level balances to madly ... You'll protest regards. ...
    (sci.crypt)
  • Re: Clock Synching Experiment Again Demonstrates Einsteins Stupidity.
    ... If the two clocks end up ... synchronized in any frame in which they are both moving. ... possible to synchronize those clocks even in this frame in which they ... Now let the clocks slowly separate in this frame, ...
    (sci.physics.relativity)
  • Re: Electronic Publication
    ... Far East build bicycle that has seventeen separate ... >>warning notices stuch to various parts of the frame. ...
    (rec.arts.sf.composition)
  • Re: Another question about glass dresser top
    ... someone yesterday thought you were putting them in the drawers. ... The top now has wood inserts, sunk within the frame with their tops even with frame. ... It's separate from whether the edges themselves are rounded, which is only important if the edges are exposed where someone could run into them, such as with a table top that isn't framed, which the nearest two-year-old is guaranteed to run into head first. ... And both are separate from the glass being smoothed to prevent getting cut just by touching it. ...
    (alt.home.repair)
  • Re: Templates: Option buttons/Check boxes
    ... The template does not recognize each "row" of options buttons as separate. ... I read an article that discussed choosing format + frame to be able to do ...
    (microsoft.public.word.docmanagement)