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: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • As mobile devices have pushed their way into the enterprise, they have brought cloud apps along with them. This app explosion means account passwords are multiplying, which exposes corporate data and leads to help desk calls from frustrated users. This paper will discover how IT can improve user productivity, gain visibility and control over SaaS and mobile apps, and stop password sprawl. Download this white paper to learn: How you can leverage your existing AD to manage app access. Key capabilities to …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds