Purpose
Enables and disables drag-and-drop operations.
Return Value
type CDragDropType
Description
The following DragDrop values are possible:
Value |
Description |
DragDropModeDisable = 0 |
Turns off all default drag-and-drop operations. |
DragFolders = 1 |
Only folders are sensitive for dragging. If a folder is dragged, the leaves in the folder are part of the drag-and-drop operation |
DragLeafs = 2 |
Only leaves are sensitive for dragging. |
DragAll = 3 |
Folders and leaves may be dragged. |
DropFolders = 4 |
Only folders from other Table Tree controls may be dropped. |
DropLeafs = 8 |
Only leaves from other Table Tree controls may be dropped |
DropAll = 12 |
Folders and leaves from other Table Tree controls may be dropped. |
DragDropFolders = 5 |
Same as DragFolder and DropFolder. |
DragDropLeafs = 10 |
Same as DragLeafs and DropLeafs. |
DragDropAll = 15 |
Same as DragAll and DropAll. |

These values may not be combined by and or or operations. Also, you can implement drag-and-drop event handlers to override the control’s default behavior completely. In these cases, it is the responsibility of the application to implement a reasonable drag-and-drop scenario.
See also
Drag and Drop with Tree Views.