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: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

  • Hybrid cloud platforms need to think in terms of sweet spots when it comes to application platform interface (API) integration. Cloud Velocity has taken a unique approach to tight integration with the API sweet spot; enough to support the agility of physical and virtual apps, including multi-tier environments and databases, while reducing capital and operating costs. Read this case study to learn how a global-level Fortune 1000 company was able to deploy an entire 6+ TB Oracle eCommerce stack in Amazon Web …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds