SAMPLE: DRGDRPT: OLE Drag-Drop Target

Last reviewed: June 4, 1996
Article ID: Q122954
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.0 provides drag-drop functionality that allows data to be dragged between and within applications. DRGDRPT is a sample application for an OLE drag-drop target that allows data of format CF_TEXT to be dropped on it. DRGDRPT implements the IDropTarget interface. It registers its main window as a drop target using RegisterDragDrop.

You can find DRGDRPT.EXE (size: 22679 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 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
    
    
    For an example of an OLE drag-drop source, see the DRGDRPS code sample. Download DRGDRPS.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
    • Microsoft Download Service (MSDL)

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

            ftp ftp.microsoft.com
            Change to the \SOFTLIB\MSLFILES directory
            Get DRGDRPS.EXE (size: 25986 bytes) 
      

    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.