How to detect a CListCtrl selection change?

前端 未结 4 790
囚心锁ツ
囚心锁ツ 2020-12-10 10:33

I want to execute some code when the user selects a row in a CListCtrl (report view, I don\'t care about the other viewing modes).

How do I catch this event? is the

4条回答
  •  无人及你
    2020-12-10 10:49

    djeidot is right on.

    I just want to add that there is no OnSelectionChanged() because the ListView supports multi-selection (although this can be disabled). Therefore, a single-selection listview will send you two events: Old item unselected AND New item selected.

提交回复
热议问题