質問

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