How To Obtain Width and Height Supplied to Window.open Inside the Visual C++ WebBrowser Host (259963)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft Internet Explorer (Programming) 4.01 SP1
- Microsoft Internet Explorer (Programming) 4.01 SP2
- Microsoft Internet Explorer (Programming) 5
- Microsoft Internet Explorer (Programming) 5.01
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q259963 SUMMARY
C++ applications that host the WebBrowser control can catch a window.open() call that is generated from script by handling the NewWindow2 event on the DWebBrowserEvents2 interface. However, it is not immediately obvious how your application can obtain the width and height values passed to the features argument of window.open() so that the WebBrowser host can resize the window correctly.
REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbhowto kbWebBrowser KB259963 |
---|
|