CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    72

    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

  2. #2
    Join Date
    Apr 1999
    Location
    Miami, FL
    Posts
    67

    Re: Dblclk Listbox; move item to other listbox



    So what exactly do you need to know?

  3. #3
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    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

  4. #4
    Join Date
    Jun 2000
    Posts
    5

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured