窗口 – 如何使任务栏闪烁我的应用程序像Messenger当新消息到达时?
发布时间:2020-07-03 10:30:50 所属栏目: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无端插上 (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 为什么有条件地包含direct.h或sys / stat.h基于_WIN32或__l
- Windows平台的原始套接字编程的知识点概要(备忘)
- WIN10下安装 NGINX+PHP+MYSQL(WNMP) 环境
- windows-installer – 安装期间的错误代码2753
- api-ms-win-crt-runtime-|1-1-0.dll丢失的解决方法
- 如何配置在Windows上运行的node.js以使用具有多个域名的多个
- windows-phone-7 – Caliburn Micro中的墓碑
- node-ffi模块的安装以及基于electron生成windows桌面应用程
- .net – SendKeys.Send和Windows Key
- windows – dokan sshfs有多稳定?
推荐文章
站长推荐
热点阅读