Using Drag and Drop
To Integrate with Drag and Drop
To integrate your application with drag and drop, follow these steps:
-
Include Dt/Dnd.h.
-
Link to libDtsvc.
-
As recipient:
-
Register as a drop zone using DtDndDropRegister.
-
Optionally, write a drop animate callback.
-
Write a transfer callback.
-
As source:
-
Recognize user action (possibly requiring a modification of translation tables) and call DtDndDragStart.
-
Write a convert callback.
-
Write a drag finish callback.