tags:

views:

44

answers:

1

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.

+1  A: 

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.

tommieb75
This is what we're looking for, but our concern with it being under the GPL is that we'll have to release our code under the GPL too. (With regards to the first article.) It's just something we're concerned will get us in trouble from legal later :p
Jarrod
That's GPL v3....will read the licence again...will write back here...
tommieb75