Print Page | Close Window

Drag and drop in WinExplorer, how to?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18921
Printed Date: 25 June 2025 at 2:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag and drop in WinExplorer, how to?
Posted By: DavidH
Subject: Drag and drop in WinExplorer, how to?
Date Posted: 08 September 2011 at 9:19am
The WinExplorer example doesn't seem to support Drag and Drop of files.

Begin Dragging seems to work, and dropping the files in another application is possible, but not in the WinExplorer itself.

How can I make both the TreeView and the ListView 'drop targets' ?

For the ListView, it seems that calling DragAcceptFiles in OnCreate and implementing OnDropFiles works. For the TreeView, not so much.

BTW: the original example code has a bug causing an ASSERT to trigger.
To reproduce: start the WinExplorer in debug mode, and drag an item from the right pane out of the window and back in and release. (V 15.1.3, VS2010).

Thanks for any reply!

David.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net