public static void DisableBlurBehind(IntPtr hWnd) { BlurBehind bb = new BlurBehind(); bb.dwFlags = BlurBehindFlags.Enable; bb.fEnable = false; NativeMethods.DwmEnableBlurBehindWindow(hWnd, ref bb); }
/// <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); }
/// <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); }
public static extern void DwmEnableBlurBehindWindow(IntPtr hWnd, ref BlurBehind pBlurBehind);