Platform SDK Shell >> Problem getting drop handler to do anything

by Dave Townsend » Sun, 29 May 2005 00:34:43 GMT

I have a NSE in the form of a simple icon on the desktop. I have already
implemented an icon handler and a context menu handler but now I am
having trouble with a drop handler, so I can drop files onto the icon.

For some reason my drop handler is never instantiated and windows doesnt
think that it can drop files onto the icon.

In the registry under the clsid for the icon I have:

ShellEx
ContextMenuHandlers
DefaultMenu
(default) = "{F31D8394-0BF1-4277-A681-776474828D97}"
DropHandler
(default) = "{68045B2F-D9AC-4826-A04A-E883EB712CCD}"
IconHandler
(default) = "{32CDE220-B81B-4857-A149-C0EEE287C1D1}"
ShellFolder
Attributes = 368
UseDropHandler = ""

Can anyone spot what I have done wrong?

Dave


Platform SDK Shell >> Problem getting drop handler to do anything

by Jim Barry » Mon, 30 May 2005 00:41:09 GMT





The shell should call your IShellFolder::CreateViewObject with IID_IDropTarget. You shouldn't need a DropHandler registry entry for this to work.

--
Jim Barry, MVP for Windows SDK



Platform SDK Shell >> Problem getting drop handler to do anything

by Dave Townsend » Mon, 30 May 2005 09:51:05 GMT





Fabulous, that did the trick thanks.

Dave