Click to See Complete Forum and Search --> : Dblclk Listbox; move item to other listbox
Nathan Strandberg
March 28th, 1999, 01:55 PM
I am trying to make a program that the user can add actions for the game to do. Example you click on the listbox and the item go's away and reapears in the listbox next to it. I hope this makes sence, because it doesen't to me!
Thanks,
Nathan Strandberg
Alvaro
March 28th, 1999, 02:04 PM
So what exactly do you need to know?
Rail Jon Rogut
March 28th, 1999, 04:39 PM
Create 2 CListBox objects and AddItem(), DeleteItem() to each of them...
the logic is pretty simple.
Rail
Recording Engineer/Software Developer
Rail Jon Rogut Software
Rail Jon Rogut Software
ASVK
June 7th, 2000, 09:49 AM
This might work.
Make 2 CListCtrl objects. In you dialog class, respond to the double click message for the first ListCtrl object. The uses the CListCtrl methode HitTest to see what Item has been double clicked. You might want to tweek this operation by responding the the controles single click messaage and recording the last 2 cursor positons and using both these to do the hit test. this should remove the problem of someone moving the mouse while clicking.
Good luck
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.