窗口 – 如何使任务栏闪烁我的应用程序像Messenger当新消息到达时?
发布时间:2020-07-03 10:22:08 所属栏目: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 8 C# – 将网页源检索为字符串
- .net – Windows Azure上的AspPDF和AspJPEG
- 批处理文件 – 以编程方式更改和刷新图标(无需重新启动)
- windows – ruby win32apistructs(VerQueryValue)
- Windows Azure开发存储blob服务不启动
- Windows – 如何使输出显示在Visual Studio 2005的错误列表
- windows – C try-catch块没有捕获硬件异常
- DropShadow for WPF无边界窗口
- windows – 当磁盘上的文件发生更改时,Emacs挂起
- windows-phone-8 – LongListMultiSelector将CheckBox与列表
推荐文章
站长推荐
- windows-phone-7 – Caliburn Micro中的墓碑
- windows-phone-8.1 – WIndows Phone Runtime ap
- windows下编译支持https的curl静态库
- 用于类似Office 2013的Windows的Windows GUI库?
- windows – 连续的接口函数ID
- win10上部署Hadoop-2.7.3——非Cygwin、非虚拟机
- windows平台xFsRedir程序更新(虚拟磁盘镜像存储
- windows-services – 监控单个窗口服务的性能
- Windows – 由于MSVCR110.dll,MS Visual Studio
- windows – sysopen权限被拒绝
热点阅读
