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. Reading the display fron other programs

Reading the display fron other programs

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiontutorial
3 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.
  • K Offline
    K Offline
    Kwanalouie
    wrote on last edited by
    #1

    Using Visual C++ MFC in SDI application I would like to read what other programs have displayed on my monitor screen. For example, if I have a webpage displayed by a browser, is there some way I can read from my C++ program what is shown on that browser's window? Thanks ahead of time

    R 1 Reply Last reply
    0
    • K Kwanalouie

      Using Visual C++ MFC in SDI application I would like to read what other programs have displayed on my monitor screen. For example, if I have a webpage displayed by a browser, is there some way I can read from my C++ program what is shown on that browser's window? Thanks ahead of time

      R Offline
      R Offline
      Rahul Vaishnav
      wrote on last edited by
      #2

      You can use interfaces in MSHTML.h Find the window handle of your browser. and then by using below interfaces you can get whole HTML of the web page which is open. IHTMLDocument2 IHTMLWindow2 IHTMLElementCollection IID_IHTMLDocument2 IHTMLElement etc..

      K 1 Reply Last reply
      0
      • R Rahul Vaishnav

        You can use interfaces in MSHTML.h Find the window handle of your browser. and then by using below interfaces you can get whole HTML of the web page which is open. IHTMLDocument2 IHTMLWindow2 IHTMLElementCollection IID_IHTMLDocument2 IHTMLElement etc..

        K Offline
        K Offline
        Kwanalouie
        wrote on last edited by
        #3

        on my pc there is no file called MSHTML.h Where does not get this? I'm using Visual C++ 6.0. What do I need to upgrade to? Thanks

        Rahul Vaishnav wrote:

        You can use interfaces in MSHTML.h Find the window handle of your browser. and then by using below interfaces you can get whole HTML of the web page which is open. IHTMLDocument2 IHTMLWindow2 IHTMLElementCollection IID_IHTMLDocument2 IHTMLElement etc..

        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