I've got a really weird thing going on here....Based on an event that happens (a call comes in), I highlight that current call using:
MyListCtrl->SetItemState(0, LVIS_FOCUSED|LVIS_SELECTED, LVIS_FOCUSED|LVIS_SELECTED);
Well, when I check to see the state of the selected/focused item in my ListCtrl I get a 2 back for LVIS_SELECTED!!. I do get a 1 back for my LVIS_FOCUSED. Well, when I tell my app to pick up the call using MyListCtrl->GetSelectionMark(), it's not grabbin the right one eventhought I told it which call to selected and focus on. What does a 2 mean? a 1 sets the bits and a 0 clears the bits...right? How can I get it to actually SET it. I do have my ListCtrl to display the selected item at all times...could this be my problem? Any and all info is GREATLY appreciated. Thanks in advance.
Niky Williams
NTS Marketing
MyListCtrl->SetItemState(0, LVIS_FOCUSED|LVIS_SELECTED, LVIS_FOCUSED|LVIS_SELECTED);
Well, when I check to see the state of the selected/focused item in my ListCtrl I get a 2 back for LVIS_SELECTED!!. I do get a 1 back for my LVIS_FOCUSED. Well, when I tell my app to pick up the call using MyListCtrl->GetSelectionMark(), it's not grabbin the right one eventhought I told it which call to selected and focus on. What does a 2 mean? a 1 sets the bits and a 0 clears the bits...right? How can I get it to actually SET it. I do have my ListCtrl to display the selected item at all times...could this be my problem? Any and all info is GREATLY appreciated. Thanks in advance.
Niky Williams
NTS Marketing