Prevent IHTMLDocument2 from updating IE screen
-
Hello all, I'm writing a IE toolbar/toolband and I need to update some html elements before saving them to a file. So far so good, everything works as expected, but I have 1 problem. I capture the IHTMLDocument2 and loop through the IHTMLElementCollection to change the 'src' of all 'img' elements. The logic works fine, but the screen (Internet Explorer) is updated with the new source code, so all img elements in the html page are invalid (which is normal, I changed them to an invalid location to test things). Is there any way I can prevent this update from happening? I'm thinking of taking a copy of the IHTMLDocument2, but have no idea how to accomplish this. Obviously setting pTempCopyDoc=pCurrentIEDoc is not working :-) I fail to find a real copy statement. Anyone knows a) how to prevent the update in IE from happening or b) take a copy of an IHTMLDocument2. By the way, the strange thing is that although the screen is updated with the invalid img's, the code behind the screen is not (if I do show source or do file/save as), the img's are still the old values. Thanks in advance Wim