CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    How can I select one row of a list control ?

    Hi,

    I want to select ( and set the focus ) to one row of the list control, I have tried this:

    m_lcInfotype.SetItemState(iIndex,LVIS_FOCUSED|LVIS_SELECTED,LVIF_STATE);

    But don't work, anybody can give me an idea ?, Thanks, Bye !
    Braulio


  2. #2
    Join Date
    May 1999
    Location
    Paris, France
    Posts
    216

    Re: How can I select one row of a list control ?

    MyListCtrl.SetItemState (0, LVIS_SELECTED | LVIS_FOCUSED,LVIS_SELECTED | LVIS_FOCUSED);



  3. #3
    Join Date
    May 1999
    Location
    Jerusalem, Israel
    Posts
    251

    Re: How can I select one row of a list control ?

    Look at CListViewEx in the ROWLIST sample in the VC++ help.


    Jack Shainsky
    Jerusalem, Israel.
    [email protected]

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