WebBrowser Control to detect type of loaded document
My application has to recognize the not-HTML response and close the browser window immediately. The problem is: how to recognize it? I tried to handle event DWebBrowserEvents2::DownloadComplete, but in this moment we cannot understand what the document type is. It will be possible later, when event DWebBrowserEvents2::DocumentComplete happens. But when the document is MS Offices (DOC, for instance), the dialog with Open, Save or Cancel? will appear first I do not need this. I tries to suppress the dialog appearance, but could not.

