Is it possible to change a Group Header in a grouped listview

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
dd900
Posts: 121
Joined: 27 Oct 2013, 16:03

Is it possible to change a Group Header in a grouped listview

Post by dd900 » 27 Nov 2021, 14:22

I have a ListView with around ~5000 items backed by an array of objects. I use a DropDownList to control grouping. All is working fine. One of my grouping options is to group the items by their path. And one of my listview contextmenu options is to move an entire folder. All works fine there as well. I am able to move the folder and update the listview accordingly. The only thing that I haven't figured out is how to update the Header of the group. I need to change it because the Header is the name of the path of the items in the group. I also have the count of items in the group header. So if I delete an item from a group I would also need to update the count in the header.

Would LV_EX_GroupInsert overwrite the header if I use the same GroupId? And would I have to re-add the items to the group if I went this route?
MainScript
ContextMenu Script
LV_Functions
there are more files to the script but this is all the relevant code

Return to “Ask for Help (v1)”