Example #1
0
        public static void EnableBlurBehindWindow(IntPtr hwnd)
        {
            DWM_BLURBEHIND dbb;

            dbb.fEnable  = true;
            dbb.dwFlags  = Constants.DWM_BB_BLURREGION | Constants.DWM_BB_ENABLE;
            dbb.hRgnBlur = IntPtr.Zero;
            dbb.fTransitionOnMaximized = false;
            WinAPI.DwmEnableBlurBehindWindow(hwnd, ref dbb);
        }