This seems to be a bug in comctrl32.dll when visual styles are enabled.
I made a very simple program that displays a dialog with the group field turned on and off. Without visual styles, a disabled group block is inactive, but with visual styles this is not the case:
Dialog without visual styles:

The same dialog using visual styles:

Both Windows 7 and Windows XP suffer from the same problem, I did not check Windows 8. I am afraid that we must put up with this. The only way is to draw a group box yourself.
source share