SAMPLE: DRGDRPS: OLE Drag-Drop Source

Last reviewed: June 4, 1996
Article ID: Q122955
The information in this article applies to:
  • Microsoft OLE Libraries for Windows and Win32s, version 2.02
  • Microsoft OLE Libraries, included with:

        - Microsoft Windows NT, versions 3.5 and 3.51
        - Microsoft Windows 95
    

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 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.

You can find DRGDRPS.EXE (size: 25986 bytes) 
                        , a self-extracting file, on these services:

  • Microsoft's World Wide Web site on the Internet

          On the www.microsoft.com home page, click the Support icon
          Click Knowledge Base, and select the product
    
          Enter kbfile DRGDRPS.EXE (size: 25986 bytes) 
                                  , and click GO!
          Open the article, and click the button to download the file
    
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the Softlib/Mslfiles folder
          Get DRGDRPS.EXE (size: 25986 bytes) 
    
  • The Microsoft Network

          On the Edit menu, click Go To, and then click Other Location
          Type "mssupport" (without the quotation marks)
          Double-click the MS Software Library icon
          Find the appropriate product area
          Locate and Download DRGDRPS.EXE
    
  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download DRGDRPS.EXE (size: 25986 bytes) 
    

    For additional information about downloading, please see the following article in the Microsoft Knowledge Base:

       ARTICLE-ID: Q119591
       TITLE     : How to Obtain Microsoft Support Files from Online Services
    
    
    See the DRGDRPT sample for an example of an OLE drag-drop target. You can find DRGDRPT.EXE, a self-extracting file, on these services:
    • Microsoft's World Wide Web site on the Internet

            On the www.microsoft.com home page, click the Support icon
            Click Knowledge Base, and select the product
      
            Enter kbfile DRGDRPT.EXE (size: 22679 bytes) 
                                    , and click GO!
            Open the article, and click the button to download the file
      
      
    • Internet (anonymous FTP)

            ftp ftp.microsoft.com
            Change to the Softlib/Mslfiles folder
            Get DRGDRPT.EXE (size: 22679 bytes) 
      
    • The Microsoft Network

            On the Edit menu, click Go To, and then click Other Location
            Type "mssupport" (without the quotation marks)
            Double-click the MS Software Library icon
            Find the appropriate product area
            Locate and Download DRGDRPT.EXE
      
    • Microsoft Download Service (MSDL)

            Dial (206) 936-6735 to connect to MSDL
            Download DRGDRPT.EXE (size: 22679 bytes) 
      

    For additional information about downloading, please see the following article in the Microsoft Knowledge Base:

       ARTICLE-ID: Q119591
       TITLE     : How to Obtain Microsoft Support Files from Online Services
    
    
    See the SIMPDND sample in the OLE2 SDK for a more complex drag-drop example.


  • Additional reference words: 2.02 3.50 4.00
    KBCategory: kbole kbcode kbfile
    KBSubcategory: LeTwoDdc


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: June 4, 1996
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.