Exemple #1
0
        public static Color GetWindowColorizationColor(bool opaque)
        {
            var par = new DWMCOLORIZATIONPARAMS();

            NativeMethods.DwmGetColorizationParameters(ref par);

            return(Color.FromArgb(
                       (byte)(opaque ? 255 : par.ColorizationColor >> 24),
                       (byte)(par.ColorizationColor >> 16),
                       (byte)(par.ColorizationColor >> 8),
                       (byte)par.ColorizationColor
                       ));
        }
Exemple #2
0
 internal static extern void DwmGetColorizationParameters(ref DWMCOLORIZATIONPARAMS par);