Hi,
Greetings!
Situation:
My ActiveX DLL contains a customized webbrowser. The webbrowser displays a web page. When user clicks the link within the displayed page, a new IE window pop up and navigate to the clicked link URL.
Question:
How can I capture the DocumenComplete and NavigateComplete events fired from the NEW pop up IE window?
What I already tried:
I tried to capture the *NewWindow2(IDispatch **ppDisp, VARIANT_BOOL Cancel) event fired from customized webbrowser (not new IE window), and obtained the pointer ppDisp which points to the new IE windown. I tried to use this pointer as event source to advise or connect to the event handler (IDispatch::Invoke) for event capture. However it does not work. Maybe the failure is because the document in new IE window has not been loaded yet. I am not sure.
Can you please give me an suggestion what I should do?
Thanks!