CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    California, USA
    Posts
    34

    How to select(hi-light) an item in CListCtrl ?

    how can I select(hi-light) an item in CListCtrl ? I couldn't find something like "SetSelectItem()" or "SelectItem()". I've tried SetItemState(nLast,LVIS_SELECTED|LVIS_FOCUSED,LVIF_STATUS), but still couldn't work. I want to hi-light the last item after i've deleted 1 item from CListCtrl.


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: How to select(hi-light) an item in CListCtrl ?

    Try this :

    SetItemState(nRow, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);


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