国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

C#實現任務欄閃爍

2019-11-17 04:03:06
字體:
來源:轉載
供稿:網友
PRivate void FlashIt()
{
FLASHWINFO fi = new FLASHWINFO();
fi.cbSize = (uint)System.Runtime.InteropServices.Marshal.SizeOf(fi);
fi.hwnd = Handle;
fi.dwFlags = FLASHW_TRAY;
fi.uCount = 3;
fi.dwTimeout = 0;
FlashWindowEx(ref fi);

}


[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool FlashWindowEx(ref FLASHWINFO pwfi);

[StructLayout(LayoutKind.Sequential)]
public struct FLASHWINFO
{
public UInt32 cbSize;
public IntPtr hwnd;
public UInt32 dwFlags;
public UInt32 uCount;
public UInt32 dwTimeout;

}


//Stop flashing. The system restores the window to its original state.
public const UInt32 FLASHW_STOP = 0;
//Flash the window caption.
public const UInt32 FLASHW_CAPTION = 1;
//Flash the taskbar button.
public const UInt32 FLASHW_TRAY = 2;
//Flash both the window caption and taskbar button.
//This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
public const UInt32 FLASHW_ALL = 3;
//Flash continuously, until the FLASHW_STOP flag is set.
public const UInt32 FLASHW_TIMER = 4;
//Flash continuously until the window comes to the foreground.
public const UInt32 FLASHW_TIMERNOFG = 12;
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 砚山县| 霍邱县| 堆龙德庆县| 敖汉旗| 政和县| 四子王旗| 武胜县| 盐亭县| 商南县| 教育| 苏尼特左旗| 柯坪县| 山东省| 新巴尔虎左旗| 梨树县| 桃源县| 安康市| 奇台县| 宝鸡市| 渝北区| 德昌县| 信阳市| 滨州市| 隆化县| 达州市| 苏尼特左旗| 永定县| 湖南省| 易门县| 三门县| 阳朔县| 潞西市| 静宁县| 桑日县| 来凤县| 奈曼旗| 信宜市| 民和| 定边县| 道真| 兴宁市|