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

Threaded View

  1. #1
    Join Date
    Apr 2005
    Posts
    41

    Selecting item in a List Control

    Hi

    I am trying to select an item in a list control using the SetItemState method. The method selects the item however the item is not highlighted on screen.

    What I have at the moment is:

    ..
    m_filelist.SetItemState(nSelected,LVIS_SELECTED|LVIS_FOCUSED,LVIS_SELECTED|LVIS_FOCUSED);
    ..

    This correctly selects the item I want however it is not highlighted. How can I also highlight a particular item?

    Cheers

    Robbie
    Last edited by robbiegregg; January 30th, 2007 at 05:29 AM.

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