public static bool flashTaskBar(IntPtr hWnd, falshType type)
 {
     FLASHWINFO fInfo = new FLASHWINFO();
     fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
     fInfo.hwnd = hWnd;
     fInfo.dwFlags = (uint)type;
     fInfo.uCount = Convert.ToUInt32(5);
     fInfo.dwTimeout = 1000; //窗口闪烁的频度,毫秒为单位;若该值为0,则为默认图标的闪烁频度
     return FlashWindowEx(ref fInfo);
 }
Esempio n. 2
0
        public static bool flashTaskBar(IntPtr hWnd, falshType type)
        {
            FLASHWINFO fInfo = new FLASHWINFO();

            fInfo.cbSize    = Convert.ToUInt32(Marshal.SizeOf(fInfo));
            fInfo.hwnd      = hWnd;
            fInfo.dwFlags   = (uint)type;
            fInfo.uCount    = Convert.ToUInt32(5);
            fInfo.dwTimeout = 1000; //窗口闪烁的频度,毫秒为单位;若该值为0,则为默认图标的闪烁频度
            return(FlashWindowEx(ref fInfo));
        }
Esempio n. 3
0
        public static bool flashTaskBar(IntPtr hWnd, falshType type)
        {
            FLASHWINFO fInfo = new FLASHWINFO();

            fInfo.cbSize    = Convert.ToUInt32(Marshal.SizeOf(fInfo));
            fInfo.hwnd      = hWnd;            //要闪烁的窗口的句柄,该窗口可以是打开的或最小化的
            fInfo.dwFlags   = (uint)type;      //闪烁的类型
            fInfo.uCount    = UInt32.MaxValue; //闪烁窗口的次数
            fInfo.dwTimeout = 0;               //窗口闪烁的频度,毫秒为单位;若该值为0,则为默认图标的闪烁频度
            return(FlashWindowEx(ref fInfo));
        }
Esempio n. 4
0
 public Flash(IntPtr p, falshType ft)
 {
     this.p  = p;
     this.ft = ft;
 }