示例#1
0
 public static void EnableTaskbarTransparency()
 {
     if (API.hTaskBars.Count == 0)
     {
         MessageBox.Show("Can't find Taskbar", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
         return;
     }
     API.DWM_BLURBEHIND dWM_BLURBEHIND = default(API.DWM_BLURBEHIND);
     dWM_BLURBEHIND.dwFlags = API.DWM_BB.Enable;
     dWM_BLURBEHIND.fEnable = false;
     foreach (IntPtr current in API.hTaskBars)
     {
         API.DwmEnableBlurBehindWindow(current, ref dWM_BLURBEHIND);
     }
 }
示例#2
0
 private static extern void DwmEnableBlurBehindWindow(IntPtr hwnd, ref API.DWM_BLURBEHIND blurBehind);