SAMPLE: Drgdrps.exe OLE Drag-Drop Source

ID: Q122955

The information in this article applies to:

SUMMARY

OLE version 2.02 and later provide drag-drop functionality that allows data to be dragged between and within applications. DRGDRPS is a sample that provides an OLE drag-drop Source that allows data of format CF_TEXT to be dragged from it.

The Drgdrps.exe sample implements IDataObject, IDropSource, and IEnumFormatEtc interfaces. It calls DoDragDrop when the user clicks on its main window to initiate a drag. It allows copying of data by dragging to a drag-drop target.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ Drgdrps.exe (size: 25986 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

To see the DRGDRPT sample for an example of an OLE drag-drop target, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q122954
   TITLE     : SAMPLE: Drgdrpt.exe OLE Drag-Drop Target

See the SIMPDND sample in the OLE2 SDK for a more complex drag-drop example.

Additional query words: 4.00

Keywords          : kbcode kbfile kbsample LeTwoDdc 
Version           : WINDOWS:2.02,4.0;WINNT:3.5,3.51;
Platform          : NT WINDOWS

Last Reviewed: March 28, 1998