Hi,

I have a CListCtrl inside a dialog. Each item in the list represents data about a particular person. Related to each person are a number of data files. What I am wanting to do is display the size of each person's data files (and the total size of all people's files) in the caption at the top of the dialog (ie: Using SetWindowText).

Ok - so I have it working fine for the total files and partially working for the individual files. My problem is how to correctly capture the changes in selection on the list control. I am using the NM_CLICK (ie: OnClick...) and LVN_KEYDOWN notifications to recalculate the size when someone either clicks on another person or moves with the arrow or page up/page down keys. I need to use these notifications rather than LVN_ITEMCHANGED as this one was updating the size for every item in the selection rather than at the end of a multiple selection.

I have trouble when I try and capture multiple selection using the page up/page down keys - I cannot work out how to catch the windows message at the right time... it will not show the correct total until I move to the next person. ie: I select a number of items in the list and the total is not correct until I move the arrow key up or down. Does this make sense? Can anyone help with this very annoying, but small issue? Also - if there is some easier or better way to do this please let me know ...

thank you,
em

ps: I can provide more info if needed