窗口 – 如何使任务栏闪烁我的应用程序像Messenger当新消息到达
发布时间:2020-12-13 21:19:04 所属栏目:Windows 来源:网络整理
导读:在.NET或本机DLL中是否有API调用,当我与某人聊天时,我可以用来创建与Windows Live Messenger类似的行为? FlashWindowEx是要走的路。见 here for MSDN documentation [DllImport("user32.dll")][return: MarshalAs(UnmanagedType.Bool)]static extern bool
在.NET或本机DLL中是否有API调用,当我与某人聊天时,我可以用来创建与Windows Live Messenger类似的行为?
FlashWindowEx是要走的路。见
here for MSDN documentation
[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; } public const UInt32 FLASHW_ALL = 3; 调用功能: FLASHWINFO fInfo = new FLASHWINFO(); fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo)); fInfo.hwnd = hWnd; fInfo.dwFlags = FLASHW_ALL; fInfo.uCount = UInt32.MaxValue; fInfo.dwTimeout = 0; FlashWindowEx(ref fInfo); 这是从Pinvoke.net无端插上 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 运行Windows应用程序的实时操作系统替代品?
- windows-server-2016 – 如何在Nano Server中添加SMTP服务器
- 将Windows Mono运行时与应用程序捆绑在一起
- 无法在Windows 8.1上使用WDS和应答文件执行无人参与的域加入
- Windows批处理文件中的字符串处理:如何用前导零填充值?
- 可以选择()与Windows下的Python文件一起使用吗?
- row_number()在hql中的分区
- 如何在无人参与的Windows服务器上关闭警报弹出窗口?
- Win10系统修改主机名、用户名称和密码、以及C盘中的用户文件
- windows-phone-7 – 由于命令行参数无效,连接失败. :WP7模