Link to home
Start Free TrialLog in
Avatar of andla
andla

asked on

WM_DROPFILES to desktop.

Is it possible to send data to the desktop from my application with WM_DROPFILES? How would an example look like?

Your sincerely andla.
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andla
andla

ASKER

How do i make the data move as a file where the mouse pointer is dropped in explorer ?
I may have misunderstood your question.  

If you want to have your application support graphically dragging things out of it to the desktop, you need to use the IDropSource COM interface and the DoDragDrop function.
Avatar of andla

ASKER

I was thinking of creating files from my application. I don't know where to look how the HDROP structure looks like but i dont think there is a member that store the actual data. I know that it is possible to assign a path to a file that the application makes temporarily. But i'm not sure if this works.
  Like the winzip tool it extracts file to a temp directory i was thinking of the same thing.

I must say that i'm thinking of other alernative than using ole drag and drop because it seems inpossible to RegisterDragDrop(...) a hwnd to a listbox. I'm using ATL and don't want MFC because it will increase the size of the control.

Avatar of andla

ASKER

Just as we send comments i found out how to use the ole drag drop in a listbox. I must be to clever...naa.
Avatar of andla

ASKER

Please help me out while i examine my other problem with ole drag drop.?

Your sincerely
andla