Shell extension and iwebbrowser2
-
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'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'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.
-
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.
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/[^].