Вопрос

I have created a CListCtrl with groups in it. I need to expand/collapse the group dynamically. How can I achieve that?

Это было полезно?

Решение

LVM_SETGROUPINFO message updates list view group data, including state. And one of the states is:

LVGS_COLLAPSED The group is collapsed.

Hence, you send a message and update the state. MFC wrapper over it is CListCtrl::SetGroupInfo.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top