Windows 7 Forums


Windows 7: Retrieving Aero Glass base color for opaque surface rendering

03 Jul 2010   #1

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 
Retrieving Aero Glass base color for opaque surface rendering

Quote:
From time to time, Long Zheng asks me to augment MetroTwit with some obscure low-level Windows feature. Given that’s where I like to dwell, it’s a good fit for me. My latest task was to implement smarts into the MetroTwit header pane that picked up the user’s current Aero Glass color. DwmGetColorizationColor immediately popped into mind and I was done an hour later. Of course, things weren’t working very well…



According to MSDN, DwmGetColorizationColor returns a color “used for Desktop Window Manager glass composition” and a boolean that simply indicates whether or not transparency is involved. The notable keyword here is composition. In the simplest scenario, a user uses a non-transparent color. This value simply gets passed to your application and everything Just Works™. In the real world, however (where transparency is turned on), things get a little trickier. The transparency toggle dutifully instructs the Desktop Window Manager to do all kinds of glass-like math-heavy nerd stuff to the base color. In this scenario, the returned color value is less useful.
More...
My System SpecsSystem Spec

Reply

 Retrieving Aero Glass base color for opaque surface rendering problems?



Thread Tools



Similar help and support threads for: Retrieving Aero Glass base color for opaque surface rendering
Thread Forum
Solved Aero without glass Customization
aero glass problems General Discussion
What is aero glass remoting General Discussion
Aero glass problem Graphic Cards
Cycle Aero Glass color in windows 7? Customization


All times are GMT -5. The time now is 01:27 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32