PRB: showModalDialog and showModelessDialog Do Not Fire NewWindow2 (251128)
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
This article was previously published under Q251128 SYMPTOMS
Calling showModalDialog or showModelessDialog does not fire the NewWindow2 event. This applies to DWebBrowserEvents2::NewWindow2 as well as its Microsoft Visual Basic equivalent, the NewWindow2 event for the WebBrowser and InternetExplorer objects.
CAUSE
The NewWindow2 event is only fired when a new instance of Internet Explorer is about to be created. The modal/modeless dialogs are not new instances of Internet Explorer. They are implemented as MSHTML host windows, allowing them to render and display HTML content (but not hyperlinks between documents). Furthermore, they do not appear in the taskbar and are closed whenever the window that created them is closed.
STATUS
This behavior is by design.
REFERENCES
For additional information, please see the following MSDN Web Workshop Web sites:
Modification Type: | Major | Last Reviewed: | 5/10/2003 |
---|
Keywords: | kbDHTML kbieObj kbnofix kbprb KB251128 |
---|
|