My peers at work told me to save off the number also and I'll try that. I am adding the code to a base class and I didn't want to pass the number of columns if I didn't have to to make the code more generic. I thought maybe some call to the listview would return the column count or allowed you to interate thru them.
Main Topics
Browse All Topics





by: PlanetCppPosted on 2005-08-11 at 13:55:16ID: 14655872
you can try Listview_GetColumn and loop until it returns false MIGHT work. but youre program should know the amount of columns because you have to add them at some point. just save the #