0

I'm hosting an Internet Explorer instance (the Web Control) in an CAxWindow ATL class. How do I prevent that a website could open a new window from the hosted IE? I'm already setting an implementation of IDocHostUIHandlerDispatch to disable the context menu.

vividos
  • 6,468
  • 9
  • 43
  • 53

1 Answers1

1

There is an event on the WebBrowser ActiveX control for displaying a new window (NewWindow, NewWindow2, NewWindow3) that you need to listen to and cancel.

Jeff Yates
  • 61,417
  • 20
  • 137
  • 189