The IDropTarget interface is one of the interfaces you implement to provide drag-and-drop operations in your application. It contains methods used in any application that can be a target for data during a drag-and-drop operation. A drop-target application is responsible for:
- Determining the effect of the drop on the target application.
- Incorporating any valid dropped data when the drop occurs.
- Communicating target feedback to the source so the source application can provide appropriate visual feedback such as setting the cursor.
- Implementing drag scrolling.
- Registering and revoking its application windows as drop targets.
The IDropTarget interface has these methods.
|IDropTarget::DragEnter||Indicates whether a drop can be accepted, and, if so, the effect of the drop.|
|IDropTarget::DragLeave||Removes target feedback and releases the data object.|
|IDropTarget::DragOver||Provides target feedback to the user and communicates the drop's effect to the DoDragDrop function so it can communicate the effect of the drop back to the source.|
|IDropTarget::Drop||Incorporates the source data into the target window, removes target feedback, and releases the data object.|
|Windows version||Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]|