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.
I’m hosting an Internet Explorer instance (the Web Control) in an CAxWindow ATL class.
Share
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.