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

    deselecting items in a listctrl

    I got two ListCtrl, when I select a item in the left one and then click in the right one everything works fine, but if I click in the left one again on another item you can see how the old selected item loses its selection and the new one gets it. Any ideas on how to prevent this? IE. how do I COMPLETLEY remove the selection of a item (I want the "border" around the item to disapear to just not the filled selection rectangle)?

    -- henrik


  2. #2
    Join Date
    Jun 2001
    Location
    California USA
    Posts
    214

    Re: deselecting items in a listctrl

    Hi
    List Controls are easy but I do not understand your question as well as I need to.
    If you have 2 list controls
    m_ctrllist1
    m_ctrllist2

    all that you must do is get the text from 1 and move it to 2 right.
    So get it, move it, delete it,Invalidate it!

    If I did not answer your question please let me know but list controls are really easy once you understand them. It is often easier to subclass controls than to use them as is as you obtain full control over the control. 8^}



    Maggie May
    Keep on Shinin
    Best Wishes,
    Maggie

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