예제 #1
0
 public void CloseDwm()
 {
     if (NativeMethods.DwmIsCompositionEnabled())
     {
         this.dwm_BLURBEHIND.fEnable = false;
         NativeMethods.DwmEnableBlurBehindWindow(base.Handle.ToInt32(), ref this.dwm_BLURBEHIND);
         this.enabledDWM = false;
     }
 }
예제 #2
0
 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;
     }
 }