Click to See Complete Forum and Search --> : dragdrop without MFC


blitzer0
September 17th, 2003, 07:42 AM
hi,

How do I use dragdrop without MFC?
Now I am using WM_DROPFILES, DragQueryFiles..., but I want to be able to drag files from my app to for eg. the desktop. And from the desktop to my app.
Also I want to be able to catch if a file is being dragged over my app (window). (like WM_MOUSEMOVE but for dragdrop :P)

I've been looking on msdn (and google :P), and found IDropSource, IDropTarget. Could that be it?
All the examles I've found about IDropSource, IDropTarget is all MFC. So could anyone direct me to what to do, some example code would be nice, or just anything else, I'm kinda stuck :]



--------------------------------------------
Blitzer - I know my english sucks ;P

Luzhi
September 17th, 2003, 08:47 AM
CreateWindowEx- extended style
WS_EX_ACCEPTFILES Specifies that a window created with this style accepts drag-drop files.

Now you can accept files i guess, didnt try it, but it should give you a start if you dont get better answer:)

pengch
September 29th, 2003, 05:09 AM
IDropSource and IDropTarget is not MFC class.
It is OLE's Object. you maybe Implementing IDropSource at your code.