Esempio n. 1
0
 private void ResetDwmBlurBehind()
 {
     if (DwmApi.DwmIsCompositionEnabled())
     {
         DwmApi.DWM_BLURBEHIND bbhOff = new DwmApi.DWM_BLURBEHIND();
         bbhOff.dwFlags     = DwmApi.DWM_BLURBEHIND.DWM_BB_ENABLE | DwmApi.DWM_BLURBEHIND.DWM_BB_BLURREGION;
         bbhOff.fEnable     = false;
         bbhOff.hRegionBlur = IntPtr.Zero;
         DwmApi.DwmEnableBlurBehindWindow(this.Handle, bbhOff);
     }
 }
Esempio n. 2
0
 private void ResetDwmBlurBehind()
 {
     if (DwmApi.DwmIsCompositionEnabled())
     {
         DwmApi.DWM_BLURBEHIND bbhOff = new DwmApi.DWM_BLURBEHIND();
         bbhOff.dwFlags = DwmApi.DWM_BLURBEHIND.DWM_BB_ENABLE | DwmApi.DWM_BLURBEHIND.DWM_BB_BLURREGION;
         bbhOff.fEnable = false;
         bbhOff.hRegionBlur = IntPtr.Zero;
         DwmApi.DwmEnableBlurBehindWindow(this.Handle, bbhOff);
     }
 }