Click here to Skip to main content
Licence 
First Posted 9 Nov 2000
Views 137,899
Bookmarked 92 times

The Drag and Drop interface samples

By | 9 Nov 2000 | Article
A series of articles that resulted from experimenting with adding Drag and Drop features to my existing application.

This article is part of the drag and drop interface samples.

  1. Serializing ASCII Data
  2. Modeless child dialog
  3. Modeless sibling dialog
  4. The drag source
  5. The MFC drop target
  6. The TBTextTarget class

  • Download source files - 113 Kb

    Preface

    This is a series of articles that has yielded from experimenting with adding some Drag and Drop features to my already-existing application. Due to the complexity of the task I split the article in several small documents that may easily fit to various of CodeProject's sections.

    Introduction

    The idea was simple: I have an SDI application with a CFormView containing a howerver-you-like filled out CListCtrl in report view.

    The first tricky thing was to use the doc/view architecture with a document file format containing ascii-strings. Read about that quck'n'clean approach.

    Next I needed to batch-manipulate the data displayed in this control. "So why not use a kind of drag & drop interface with a modeless dialog box and let the user drag the rows he needs into that dialog..." I thought - and thats how this articles start.

    You may download all sample MSVC (6.0) projects at once or for you can fetch the code for each of these steps:

    I'm looking forward to hearing your comments and improvements.

    Best regards
        Thomas Blenkers

  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Thomas Blenkers

    Web Developer

    Germany Germany

    Member

    PhD Chemist,
    programming with MSVC & MFC since 1996

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralInteresting PinmemberSB200323:02 22 Nov '10  
    Generalexcellent PinmemberXPointer0:28 27 Sep '06  
    GeneralSame View Pinmemberpicazo11:57 8 Mar '06  
    AnswerRe: Same View PinmemberThomas Blenkers2:25 11 Mar '06  
    QuestionHow can i control and prohibit drag & drop? Pinmemberatsuki19:59 10 Mar '05  
    Hi,
     
    Now I am coding the security tool which is prohibited user to drag & drop.
    I've already coded the clipboard control using ON_WM_DRAWCLIPBOARD and ON_WM_CHANGECBCHAIN, but I have no idea to control drag and drop.
    Is any different between Clipboard and Drag and Drop???
     
    so, please help me if you know.
    thank you
     
    Atsuki
    QuestionHow to drag & drop between tow UI(User Interface) threads? PinmemberDavis X.21:31 16 Aug '03  
    AnswerRe: How to drag & drop between tow UI(User Interface) threads? Pinmemberyu_cg17:22 17 Oct '07  
    GeneralMissing Files PinmemberDarren Schroeder2:57 11 Nov '00  
    GeneralRe: Missing Files Pinmemberrajas5:41 20 Apr '03  

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Mobile
    Web01 | 2.5.120528.1 | Last Updated 10 Nov 2000
    Article Copyright 2000 by Thomas Blenkers
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid