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

  • On-demand Event Event Date: May 18, 2015 While the idea of using facial and/or gesture recognition to create a modern, intuitive game seems attractive, some developers may want to leverage Unity 3D as a way to accelerate their development efforts. There are many different ways in which Intel and Unity Technologies have been working together to help speed the development of games with the Intel&reag; RealSense™ SDK (software developer kit). Check out this webcast to join a panel of experts as they …

  • Are you truly leading your team or simply managing them? Organizations need leaders and your team needs someone to follow. With some ongoing development, you could become that leader. Learn the top leadership qualities that inspire others to want to follow you and the direction of your company.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date