Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Njawin and getting a handle to IE popup windows

843829Jul 14 2004 — edited Jul 15 2004
I am using njawin to generate mshtml and shdocvw in order to control Internet
Explorer. I can get IE to come up and I can click links, set inputs, etc. But when I click a link the pops up a new window how do I get a handle to it? I am using the event NewWindow2 which gets called, but there is no reference to the new window passed in.

Njawin generated Java:
public void NewWindow2(Object o, ObjectRef objectRef, ObjectRef objectRef1) throws COMException

MSHTML interface:
void NewWindow2(
IDispatch **&ppDisp,
VARIANT_BOOL *&Cancel
);


Please advise� thanks,
Brian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2004
Added on Jul 14 2004
1 comment
89 views