Implementing Drag and Drop on List Control Items

Environment: VC++ 5.0-6.0, NT 4.0/2000/XP, Win 2000/ME

Level: Intermediate

In this article, I implemented a drag and drop operation for list control items. I implemented a list control that displays the graphics for a particular folder as thumbnails. The user can drag the thumbnails and drop them on the destination list control. The thumbnail actually gets copied from one list control to another.

About the Author

I work in a software company as a senior programmer; we develop software for specific hardware. I am not a well-experienced VC++ programmer, but tried to implement my best efforts.

Downloads

Download demo project - 24 Kb
Download source - 114 Kb


Comments

  • Where is the article?

    Posted by nitin_rajurkar on 10/23/2007 02:12am

    I can't find the article. How can I rate it?

    Reply
  • Listbox

    Posted by Legacy on 11/18/2003 12:00am

    Originally posted by: moin

    1. Please advise me how to do it the follwoing :

    If i am using listbox and when i am updating the data by using other tool like text box the data is not going to added in the listbox from the back end,

    could u please make the programme on it and forward it to me with the coading

    Your ealriest response to this matter is highly appreciated.

    tks
    bye
    moin

    Reply
  • Great!!!

    Posted by Legacy on 03/17/2003 12:00am

    Originally posted by: Jinny

    Just what I needed - was breaking my head for about a week, and found this code - 10x a lot :]

    Reply
  • Why drag n drop not working on my computer(Win98 & Win2K)

    Posted by Legacy on 02/13/2003 12:00am

    Originally posted by: coolvcguy

    I tried to download the application and tested a bit.
    
    But it doesn't work here in Win98 and Win2k.
    Is any file missing in my computer or I have not
    followed the procedure properlly?
    I opened some files in left listbox and then try to
    do drag and drop with mouse on rightside list box.
    But didn't work.
    Thankx in advance.

    Reply
  • Do you know how to drag from different applications?.

    Posted by Legacy on 02/11/2003 12:00am

    Originally posted by: vikram

    Hi..

    Nice code.
    do you know how todrag the drag the thumbnails from other applications and drop to my application?.

    TIA
    Vikram Patwardhan

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • On-demand Event Event Date: October 29, 2014 It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this webcast, Gene Kim discusses these survey findings and shares woeful tales of artifact management gone wrong! Gene also shares examples of how high-performing DevOps …

Most Popular Programming Stories

More for Developers

RSS Feeds