CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    How to select an item in CListCtrl?

    Hi all,

    Can someone tell me how to select or highlight an item in a CListCtrl in run time? I want to make sure at least one item is highlighted at any time.

    Wilson


  2. #2
    Join Date
    Sep 1999
    Location
    Europe / Austria / Innsbruck
    Posts
    442

    Re: How to select an item in CListCtrl?

    Hi, use SetItemState:

    pList->SetItemState(nItemIndex, LVIS_SELECTED, LVIS_SELECTED);





  3. #3
    Guest

    Re: How to select an item in CListCtrl?

    Thanks.

    Wilson


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