Question

How do I get an item's index number using the caption text? I'm using CListCtrl class of MFC. I have the item's caption text, can I get the index for that item and then update its text. It will be helpful if you could provide an example.

Was it helpful?

Solution

CListCtrl::FindItem (MSDN link with example)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top