From: Landon on
I use Visual C++ 4.2 Professional. I use the CListCtrl to display all data.

I don't create the CListCtrl dynamically but from design form where I drag
it onto the form.

When user click a button, it will get the selected items and get the item
data pointer.

So I must check if the item has been selected or not.

How to find out if the item has been selected or not when I click the button?

Thank you very much.
From: David Lowndes on
>So I must check if the item has been selected or not.
>How to find out if the item has been selected or not when I click the button?

Use GetNextItem to find items that have LVNI_SELECTED.

Dave