Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Really? No simple WPF example of INewWindowManager::EvaluateNewWindow

84 views
Skip to first unread message

gcym...@gmail.com

unread,
Nov 14, 2012, 3:00:42 AM11/14/12
to
Sorry if this is the wrong group, but there were some related posts here and I'm so frustrated that I can't find a solution.

I've got a WPF app that has a System.Windows.Controls.WebBrowser control. I've got things like DWebBrowserEvents2_NewWindow2EventHandler, DWebBrowserEvents_BeforeNavigateEventHandler and DWebBrowserEvents2_ProgressChangeEventHandler all hooked up and working OK.

However, I'd like to be able to open popup windows (browser windows opened with window.open) using the parameters specified in the JavaScript. For example, I'd like to respect and handle window.open features like "status=1,toolbar=1,height=500,width=600". It seems like INewWindowManager::EvaluateNewWindow is where I can get to this information.

But I cannot find a simple example of how to implement this. http://code.google.com/p/csexwb2/ is an exhaustive implementation of a WebBrowser control that implements this interface and many others, but I'd rather not have to include that entire project in my solution.

Is there no one anywhere who has implemented INewWindowManager in an app that uses the WPF System.Windows.Controls.WebBrowser control?

Thanks,
Greg
0 new messages