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. Shell extension and iwebbrowser2

Shell extension and iwebbrowser2

Scheduled Pinned Locked Moved C / C++ / MFC
linuxquestion
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.
  • F Offline
    F Offline
    Felix Gartsman
    wrote on last edited by
    #1

    I'm writing a context menu shell extension that is shown in response to user right-click on directory background. I need to get the explorer interface (iwebbrowser2 or similar) that executed my extension. From what I found the communication is one-way and I can't get what I need. Am I missing something, or is there some hack?

    I 1 Reply Last reply
    0
    • F Felix Gartsman

      I'm writing a context menu shell extension that is shown in response to user right-click on directory background. I need to get the explorer interface (iwebbrowser2 or similar) that executed my extension. From what I found the communication is one-way and I can't get what I need. Am I missing something, or is there some hack?

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      I've had a quick look see, and about the only information you get from the caller is the HMENU. As this doesn't help you too much, you may be able to go from the mouse position. That would certainly tell you the window of the explorer area. You may be able to go from there. But in short, you're not *meant* to know / care. The information you need is passed through the IShellExtInit::Initialize interface. That gives you the PIDL of the folder, and an IDataObject (whatever that is!). I can't think why you'd need more. If you expand of what you want from the caller, I may be able to help. Iain.

      F 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        I've had a quick look see, and about the only information you get from the caller is the HMENU. As this doesn't help you too much, you may be able to go from the mouse position. That would certainly tell you the window of the explorer area. You may be able to go from there. But in short, you're not *meant* to know / care. The information you need is passed through the IShellExtInit::Initialize interface. That gives you the PIDL of the folder, and an IDataObject (whatever that is!). I can't think why you'd need more. If you expand of what you want from the caller, I may be able to help. Iain.

        F Offline
        F Offline
        Felix Gartsman
        wrote on last edited by
        #3

        Iain Clarke wrote: If you expand of what you want from the caller, I may be able to help. I want to be able change the directory of the calling explorer. More or less like the "Go To Folder" feature of http://www.shelltoysxp.com/[^].

        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