Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Prevent IHTMLDocument2 from updating IE screen

Prevent IHTMLDocument2 from updating IE screen

Scheduled Pinned Locked Moved ATL / WTL / STL
htmlhelptutorialquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wim Jans
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups