Saving webpage content using webbrowser IHTMLDocument interface
问题 We need to save the complete web page including img, javascript, css and html using ATL webbrowser (IHTMLDocument) control, using IHTMLDocument2::get_all() method we have saved .html file but now how do we get external files such as .css, javascript and image files please help us with methods that internet explorer or firefox used to save the web page locally. Thanks, Ramanand. 回答1: I think this will be a rather manual task: You can get a grip on the stylesheets by using the IHTMLDocument2: