Esempio n. 1
0
        private void _SetDwmAttributes(IntPtr hwnd)
        {
            if (Utility.IsOSVistaOrNewer)
            {
                DWMFLIP3D flipPolicy = this.Topmost ? DWMFLIP3D.EXCLUDEABOVE : DWMFLIP3D.EXCLUDEBELOW;
                NativeMethods.DwmSetWindowAttributeFlip3DPolicy(hwnd, flipPolicy);

                if (Utility.IsOSWindows7OrNewer)
                {
                    NativeMethods.DwmSetWindowAttributeDisallowPeek(hwnd, true);
                }
            }
        }
 public static void DwmSetWindowAttributeFlip3DPolicy(IntPtr hwnd, DWMFLIP3D flip3dPolicy)
 {
     Assert.IsTrue(Utility.IsOSVistaOrNewer);
     var dwPolicy = (int)flip3dPolicy;
     _DwmSetWindowAttribute(hwnd, DWMWA.FLIP3D_POLICY, ref dwPolicy, sizeof(int));
 }
Esempio n. 3
0
        public static void DwmSetWindowAttributeFlip3DPolicy(IntPtr hwnd, DWMFLIP3D flip3dPolicy)
        {
            int num = (int)flip3dPolicy;

            NativeMethods._DwmSetWindowAttribute(hwnd, DWMWA.FLIP3D_POLICY, ref num, 4);
        }