What we’re looking to do is determine if a group header has been clicked, like the “Hard Disk Drives” or the “Devices with Removable Storage” headers in the My Computer on Vista/7 screen. This has to work in XP.
We can detect when a mouse is in the region, and then trap a click, but we’d like to know if there is a specific event.
There is an article that implements a custom ListView control which I believe the author has tackled the problem of clicking on a group here. There is another article which shows which header is clicked on although I am not 100% confident if that is in the context of a group header…but I would imagine it would be the same principle for group headers…
Hope this helps,
Best regards,
Tom.