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. Communicating with IE

Communicating with IE

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
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.
  • R Offline
    R Offline
    Ray
    wrote on last edited by
    #1

    I would like to learn how to do this using Visual C++/MFC: From my dialog-based program, send a message to an IE window and set the cursor(focus) on one object like the link "Visual C++" on this page. Or send a message to this already-executed IE to connect to a specific URL. How should I do that? Thanks a lot!

    E 1 Reply Last reply
    0
    • R Ray

      I would like to learn how to do this using Visual C++/MFC: From my dialog-based program, send a message to an IE window and set the cursor(focus) on one object like the link "Visual C++" on this page. Or send a message to this already-executed IE to connect to a specific URL. How should I do that? Thanks a lot!

      E Offline
      E Offline
      Eq
      wrote on last edited by
      #2

      Simply implement a "Browser helper object". There are examples in MSDN called IEHelper. You can control the IE (and also the windows explorer, active desktop) by invoking its methods (e.g. navigate, goback, goforward, ...) or asynchronously obtain the events from IE when the items on it are being clicked. Of course, you can access the DHTML model (e.g. any HTML elements on the page) and locate the cursor whenever you like. If you are familiar with javascript, that would be a big help in doing with dhtml too.

      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