-
January 30th, 2007, 05:01 AM
#1
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.
-
January 30th, 2007, 05:41 AM
#2
Re: Selecting item in a List Control
Did you mean:
Code:
m_filelist.SetItemState(nSelected, LVIS_SELECTED|LVIS_FOCUSED, LVIF_SELECTED);
-
January 30th, 2007, 06:55 AM
#3
Re: Selecting another item in a List Control
-
January 30th, 2007, 07:39 AM
#4
Re: Selecting another item in a List Control
SetItemState(nItem, LVIS_SELECTED, LVIS_SELECTED);
works for me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|