示例#1
0
        public static void DisableBlurBehind(IntPtr hWnd)
        {
            BlurBehind bb = new BlurBehind();

            bb.dwFlags = BlurBehindFlags.Enable;
            bb.fEnable = false;

            NativeMethods.DwmEnableBlurBehindWindow(hWnd, ref bb);
        }
示例#2
0
        /// <summary>Enable the Aero "Blur Behind" effect on the whole client area. Background must be black.</summary>
        public static void EnableBlurBehind(IntPtr hWnd)
        {
            BlurBehind bb = new BlurBehind();

            bb.dwFlags  = BlurBehindFlags.Enable;
            bb.fEnable  = true;
            bb.hRgnBlur = (IntPtr)0;

            NativeMethods.DwmEnableBlurBehindWindow(hWnd, ref bb);
        }
示例#3
0
        /// <summary>Enable the Aero "Blur Behind" effect on the whole client area. Background must be black.</summary>
        public static void EnableBlurBehind(IntPtr hWnd, IntPtr regionHandle)
        {
            BlurBehind bb = new BlurBehind();

            bb.dwFlags  = BlurBehindFlags.Enable | BlurBehindFlags.BlurRegion;
            bb.fEnable  = true;
            bb.hRgnBlur = regionHandle;

            NativeMethods.DwmEnableBlurBehindWindow(hWnd, ref bb);
        }
示例#4
0
 public static extern void DwmEnableBlurBehindWindow(IntPtr hWnd, ref BlurBehind pBlurBehind);