I remember trying to figure out if it was possible to drag and drop on to an
icon in the tray about a year ago and having no luck at all doing so.
Does anyone know a way of doing this?
I'm thinking it might be possible to inject something into the explorer
process, call RegisterDragDrop inside the process for the TrayNotifyWnd(or
whatever its class is called, I don't remember) and pass in an IDropTarget
that can sit in the explorer process. Then when it gets called, throw it
back over the process boundary to my tray icon and process the drop. (Many
difficult, painful steps removed :) The one problem I see with this, is
that this will make the entire window (and thus every icon in the tray)
appear droppable (verb?).
So what I'd really need is some way to locate where in the tray my icon
rests and only allow drops when the mouse cursor is over my icon. Only
problem is I don't have a clue how to do that -- other than really ugly
tecniques like trying to identify my icon in a bitmap of the tray window as
So before I go insane and start trying to do all of this -- anyone got any
better ideas. And just to make life more difficult -- I'd like this to work
on 95/98/NT4/2000. Although, out of sheer desperation, I'll take solutions
for any individual platform :)