Dblclk Listbox; move item to other listbox
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
Re: Dblclk Listbox; move item to other listbox
So what exactly do you need to know?
Re: Dblclk Listbox; move item to other listbox
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
Re: Dblclk Listbox; move item to other listbox
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