Determine if Aero is using
-
Saturday, August 15, 2009 1:26 PMI'm intend to use Aero glass in my program. It require use Black background to use this. If user is using Basic style, it will be very bad :( (although there's no error). How can I know if user is using Aero?
What is big but light?
Answers
-
Sunday, August 16, 2009 9:12 AM
This article here is in c# but uses a form of validation to check if Aero is enabled.
Try converting it using a free online c# to vb tool on the internet, like this one ...
http://www.developerfusion.com/tools/convert/csharp-to-vb/
http://www.codeproject.com/KB/vista/AeroGlassForms.aspx
- Proposed As Answer by DJ PIP Sunday, August 16, 2009 9:12 AM
- Marked As Answer by Xingwei Hu Friday, August 21, 2009 3:43 AM
-
Thursday, August 20, 2009 9:20 AM
You could use the Win32.DwmIsCompositionEnabled() function to determine if Aero is using.
Win32.DwmIsCompositionEnabled()
http://msdn.microsoft.com/en-us/library/aa969518(VS.85).aspx
Obtains a value that indicates whether Desktop Window Manager (DWM) composition is enabled. Applications can listen for composition state changes by handling the WM_DWMCOMPOSITIONCHANGED notification.
you could try this code and the sample DJ PIP post could works fine on my computer .If Not Win32.DwmIsCompositionEnabled() Then MessageBox.Show("This demo requires Vista, with Aero enabled.") End If
Best wishes
Xingwei Hu
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Proposed As Answer by Waleed El-Badry Thursday, August 20, 2009 10:17 AM
- Marked As Answer by Xingwei Hu Friday, August 21, 2009 3:43 AM
All Replies
-
Saturday, August 15, 2009 8:33 PMI don't think that I have encountered such a code. Sorry love
Waleed El-Badry Teaching Assistant Faculty of Engineering Misr University for Science & Technology -
Sunday, August 16, 2009 7:24 AMI really don't know how to get even current Theme name!
What is big but light? -
Sunday, August 16, 2009 9:12 AM
This article here is in c# but uses a form of validation to check if Aero is enabled.
Try converting it using a free online c# to vb tool on the internet, like this one ...
http://www.developerfusion.com/tools/convert/csharp-to-vb/
http://www.codeproject.com/KB/vista/AeroGlassForms.aspx
- Proposed As Answer by DJ PIP Sunday, August 16, 2009 9:12 AM
- Marked As Answer by Xingwei Hu Friday, August 21, 2009 3:43 AM
-
Thursday, August 20, 2009 9:20 AM
You could use the Win32.DwmIsCompositionEnabled() function to determine if Aero is using.
Win32.DwmIsCompositionEnabled()
http://msdn.microsoft.com/en-us/library/aa969518(VS.85).aspx
Obtains a value that indicates whether Desktop Window Manager (DWM) composition is enabled. Applications can listen for composition state changes by handling the WM_DWMCOMPOSITIONCHANGED notification.
you could try this code and the sample DJ PIP post could works fine on my computer .If Not Win32.DwmIsCompositionEnabled() Then MessageBox.Show("This demo requires Vista, with Aero enabled.") End If
Best wishes
Xingwei Hu
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Proposed As Answer by Waleed El-Badry Thursday, August 20, 2009 10:17 AM
- Marked As Answer by Xingwei Hu Friday, August 21, 2009 3:43 AM
-
Thursday, August 20, 2009 10:17 AMThanks Xingwei for this precious answer. It is one of the recurring questions for Vista developers.
Please accept my respect and regards.
Cheers
Waleed El-Badry ,Teaching Assistant, Faculty of Engineering , Misr University for Science & Technology -
Thursday, January 13, 2011 2:34 AM
You could use the Win32.DwmIsCompositionEnabled() function to determine if Aero is using.
Win32.DwmIsCompositionEnabled()
http://msdn.microsoft.com/en-us/library/aa969518(VS.85).aspx
Obtains a value that indicates whether Desktop Window Manager (DWM) composition is enabled. Applications can listen for composition state changes by handling the WM_DWMCOMPOSITIONCHANGED notification.
you could try this code and the sample DJ PIP post could works fine on my computer .If Not Win32.DwmIsCompositionEnabled() Then MessageBox.Show("This demo requires Vista, with Aero enabled.") End If
Best wishes
Xingwei Hu
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
I'm still studying it, I've learned a lot, Wonderful answer.

