private static void SetClickThru()
 {
     foreach (Window w in Application.Current.Windows)
     {
         FocusManager.MakeTransparent(new WindowInteropHelper(w).Handle);
     }
 }
예제 #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            IntPtr hwnd = new WindowInteropHelper(this).Handle;

            FocusManager.MakeUnfocusable(hwnd);
            FocusManager.HideFromToolBar(hwnd);
            if (Properties.Settings.Default.Transparent)
            {
                FocusManager.MakeTransparent(hwnd);
            }
        }