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. IWebBrowser2 from IE HWND

IWebBrowser2 from IE HWND

Scheduled Pinned Locked Moved C / C++ / MFC
helpjson
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.
  • P Offline
    P Offline
    Paul M Watt
    wrote on last edited by
    #1

    Hi all, I need to get the IWebBrowser2 interface from the HWND for an IE control. Currently I am using Active Accessibility to get the IHTMLDocument2 interface from an HWND. Normally you can get the IWebBrowser2 interface from IHTMLDocument2 by querying IHTMLDocument2 for the IServiceProvider interface, then calling QueryService to get the IWebBrowser2 interface. This does not appear to work going through active accessibility. I believe this problem may have something to do with the set of objects that are marshalled with active accessibility. If anyone has been able to successfully go from an HWND for an IE control to the IWebBrowser2 interface, I would really appreciate your help and solution. Thank you


    Build a man a fire, and he will be warm for a day
    Light a man on fire, and he will be warm for the rest of his life!

    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