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. C / C++ / MFC
  4. .GetSource() in Microsoft Web Browser ActiveX ??

.GetSource() in Microsoft Web Browser ActiveX ??

Scheduled Pinned Locked Moved C / C++ / MFC
questionhtmlcom
2 Posts 2 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.
  • A Offline
    A Offline
    Alex H 1983
    wrote on last edited by
    #1

    hi every body i have inserted microsoft web browser ActiveX in my dialog and i want to use it's features! there is no GetSource() in this activeX's functions So how can i Get the Source of HTML that i am navigating? thanx a lot -=Ehsan-de-Burge=-

    I 1 Reply Last reply
    0
    • A Alex H 1983

      hi every body i have inserted microsoft web browser ActiveX in my dialog and i want to use it's features! there is no GetSource() in this activeX's functions So how can i Get the Source of HTML that i am navigating? thanx a lot -=Ehsan-de-Burge=-

      I Offline
      I Offline
      Ivor S Sargoytchev
      wrote on last edited by
      #2

      Yes, it is possible. Here is how: 1. Use the IWebBrowser2::Document property to obtain an IDispatch interface to the DOM document. 2. Query the obtained IDispatch for IHTMLDocument3. 3. Use the IHTMLDocument3::createTextNode() method to convert the root node to text. If you don't like that approach you can simply enable the menu bar using the IWebBrowser2::MenuBar() method. View source is there. Ivor S. Sargoytchev Dundas Software

      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