Re: how to be notified when a frameset is loaded?



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

.