Home | Overview | How Do I | Sample | Tutorial
This article outlines how to make your application a drop target. Implementing a drop target takes slightly more work than implementing a drop source, but it’s still relatively simple. These techniques also apply to non-OLE applications.
Override | To allow |
OnDragEnter | Drop operations to occur in the window. Called when the cursor first enters the window. |
OnDragLeave | Special behavior when the drag operation leaves the specified window. |
OnDragOver | Drop operations to occur in the window. Called when the cursor is being dragged across the window. |
OnDrop | Handling of data being dropped into the specified window. |
OnScrollBy | Special behavior for when scrolling is necessary in the target window. |
See the MAINVIEW.CPP file that is part of the MFC OLE sample OCLIENT for an example of how these functions work together.
See Also COleDropTarget