COleDropSource

A COleDropSource object allows data to be dragged to a drop target. The COleDropTarget class handles the receiving portion of the drag-and-drop operation. The COleDropSource object is responsible for determining when a drag operation begins, providing feedback during the drag operation, and determining when the drag operation ends.

To use a COleDropSource object, just call the constructor. This simplifies the process of determining what events, such as a mouse click, begin a drag operation using COleDataSource::DoDragDrop, COleClientItem::DoDragDrop, or COleServerItem::DoDragDrop function. These functions will create a COleDropSource object for you. You might want to modify the default behavior of the COleDropSource overridable functions. These member functions will be called at the appropriate times by the framework.

For more information on drag-and-drop operations using OLE, see the article Drag and Drop (OLE) in Visual C++ Programmer’s Guide.

For more information, see IDropSource in the OLE 2 Programmer's Reference, Volume 1.

#include <afxole.h>

Class MembersBase ClassHierarchy Chart

Samples   MFC Sample HIERSVRMFC Sample OCLIENT