Is there a way to detect if Aero glass themes are enabled on Vista/7?
It seems that windows reports sizes with GetWindowRect/DwmGetWindowAttribute incorrectly when glass themes are enabled (off by about 5 pixels).
I have been looking, and all suggestions say to check if composition is enabled, but that doesn't fully answer the question. It is possible to have composition enabled and still run either Windows Vista/7 Basic theme or Windows Classic theme. However, with these themes applied, GetWindowRect returns the true window size.
I need to offset my rect by 5 pixels *only* when the Glass themes are enabled.
It seems that windows reports sizes with GetWindowRect/DwmGetWindowAttribute incorrectly when glass themes are enabled (off by about 5 pixels).
I have been looking, and all suggestions say to check if composition is enabled, but that doesn't fully answer the question. It is possible to have composition enabled and still run either Windows Vista/7 Basic theme or Windows Classic theme. However, with these themes applied, GetWindowRect returns the true window size.
I need to offset my rect by 5 pixels *only* when the Glass themes are enabled.