Implementing Drag-And-Drop in c/c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ursskmdali
    New Member
    • Nov 2007
    • 10

    Implementing Drag-And-Drop in c/c++

    Hi,

    Can anyone suggests me how to implement Drag-And-Drop property using C/C++.

    Thanks in advance.
  • arunmib
    New Member
    • May 2007
    • 104

    #2
    What do you want to know? what have you done? Some thing like this can act as a guideline,

    1) Register the mouse1 press event.
    2) Record the properties of the item selected.
    3) Register the mouse1 release event.
    4) Get the location(of the destination), properties etc..etc.. that you may need to do while moving.
    5) Create a copy of the item in the new location and if it's successful remove the old item.
    6) If the move failed, then remove the created copy in destination and it's associated properties and clear the recorded information

    If you want more details, as all experts here say "tell what you have done till now and where you are stuck and the experts(certain ly not me ;-) ) here will help you" .
    Last edited by arunmib; Nov 29 '07, 07:21 AM. Reason: modified comments

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Is this for Windows?? Then there are API's for this.

      Comment

      • Studlyami
        Recognized Expert Contributor
        • Sep 2007
        • 464

        #4
        Here is a video from msdn that tells you how to implement drag and drop in MFC.

        Comment

        Working...