Advertisement

Drag & Drop

Started by November 19, 2000 12:22 PM
3 comments, last by BitBlt 24 years, 2 months ago
Does anyone know how to implement or of some example source code to make a drag and drop window. Kinda like in Winzip, when you''re making a zip file, you cand just open up the directory, and drag the files icon into winzip and it adds it to the zip. I don''t want to know how to make zip files, I just want to know how to set up the window to detect if a file has been dragged into the client area.

"We are the music makers, and we are the dreamers of the dreams." - Willy Wonka
Call DragAcceptFiles then you will receive WM_DROPFILES messages. A little more complex is using RegisterDragDrop. If you are prepared to accept any file then DragAcceptFiles should work fine.
Keys to success: Ability, ambition and opportunity.
Advertisement
Thanks, that''s just what I was looking for.



"We are the music makers, and we are the dreamers of the dreams."
- Willy Wonka
Hey dave, was up!?
----------------------------------------Implementation is everything. Period.
HEY!!! Haven''t talked to you in forever. I''ll send you an e-mail when I get a chance.



"We are the music makers, and we are the dreamers of the dreams."
- Willy Wonka

This topic is closed to new replies.

Advertisement