public void CloseDwm() { if (NativeMethods.DwmIsCompositionEnabled()) { this.dwm_BLURBEHIND.fEnable = false; NativeMethods.DwmEnableBlurBehindWindow(base.Handle.ToInt32(), ref this.dwm_BLURBEHIND); this.enabledDWM = false; } }
public void EnabledDwm() { if (NativeMethods.DwmIsCompositionEnabled()) { this.dwm_BLURBEHIND.dwFlags = 3; this.dwm_BLURBEHIND.fEnable = true; this.dwm_BLURBEHIND.hRegionBlur = IntPtr.Zero; NativeMethods.DwmEnableBlurBehindWindow(base.Handle.ToInt32(), ref this.dwm_BLURBEHIND); this.enabledDWM = true; } }