Re: how to be notified when a frameset is loaded?
- From: "lel" <karim_saidi@xxxxxxxxxxx>
- Date: 4 Jul 2006 13:11:46 -0700
All right, I will try this thank you.
Igor Tandetnik a écrit :
"lel" <karim_saidi@xxxxxxxxxxx> wrote in message
news:1151947670.363525.240190@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have construct a bho with MSGHTML. I am sinking event and make a
manipulation when the event DOCUMENTCOMPLETE is fired. But using an
url with a frameset, it seems that DOCUMENTCOMPLETE event is fired
for each frame. So how can I be notified when a frameset is loaded?
One of the parameters of DocumentComplete event is an IDispatch pointer
of the frame (or top-level browser) that has in fact finished loading.
You are interested in the event where this parameter refers to the
top-level browser - the one whose pointer you got in
IObjectWithSite::SetSite. Make sure to use COM identity comparison: to
check whether two interface pointers point to the same object, query
both pointers explicitly for IUnknown, then compare resulting IUnknown
pointers for equality.
--
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
.
- References:
- BHO : how to be notified when a frameset is loaded?
- From: lel
- Re: how to be notified when a frameset is loaded?
- From: Igor Tandetnik
- BHO : how to be notified when a frameset is loaded?
- Prev by Date: IPersistStreamInit doesn't work on win2k?
- Next by Date: How do I know when IE finish to render HTML?
- Previous by thread: Re: how to be notified when a frameset is loaded?
- Next by thread: IPersistStreamInit doesn't work on win2k?
- Index(es):