托盘气泡消息弹出的时间问题

孟如庭 2014-03-10 05:54:34
上一个贴子http://bbs.csdn.net/topics/390708739?page=1#post-396900865
找到了托盘如何弹出消息。
现在的问题是,气泡消息的时间如何设置

NOTIFYICONDATA 中有一项 uTimeout,我设置之后显示时间没有变化。总是大约显示20s左右

我看了msdn了,也没有找到
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773352(v=vs.85).aspx
...全文
226 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟如庭 2014-03-14
  • 打赏
  • 举报
回复
终于找到什么原因了 Remark中如下: If the user does not appear to be using the computer, the system does not count this time toward the timeout. 原来没有鼠标操作,就算不试用电脑了,气泡的时间也就不继续了。 我保持在有鼠标操作的情况下,试了几次,和设置的时间差不多吧。。。
zwfgdlc 2014-03-11
  • 打赏
  • 举报
回复
引用 4 楼 feiyue1206 的回复:
[quote=引用 2 楼 CharlesSimonyi 的回复:] uTimeout Note This member is deprecated as of Windows Vista. Notification display times are now based on system accessibility settings. 注意:此成员在 Windows Vista 及以后系统中已被否决。通知的显示时间现在取决于系统的辅助功能设置。
这段我看到了。 问题是,现在我使用的是xp啊。。。 另外,系统的辅助功能设置是在哪里呢,程序能不能设置呢[/quote]
uVersion
Version 5.0. Union with uTimeout. Specifies whether the Shell notify icon interface should use Windows 95 or Windows 2000 behavior. For more information on the differences in these two behaviors, see Shell_NotifyIcon. This member is only employed when using Shell_NotifyIcon to send a NIM_SETVERSION message.
0
Use the Windows 95 behavior. Use this value for applications designed for Windows versions prior to Windows 2000.
NOTIFYICON_VERSION
Use the Windows 2000 behavior. Use this value for applications designed for Windows 2000 and later.
NOTIFYICON_VERSION_4
Use the Windows Vista behavior.
uVersion是不是NOTIFYICON_VERSION?
schlafenhamster 2014-03-11
  • 打赏
  • 举报
回复
XP到时间了,4月8号
孟如庭 2014-03-11
  • 打赏
  • 举报
回复
引用 2 楼 CharlesSimonyi 的回复:
uTimeout Note This member is deprecated as of Windows Vista. Notification display times are now based on system accessibility settings. 注意:此成员在 Windows Vista 及以后系统中已被否决。通知的显示时间现在取决于系统的辅助功能设置。
这段我看到了。 问题是,现在我使用的是xp啊。。。 另外,系统的辅助功能设置是在哪里呢,程序能不能设置呢
schlafenhamster 2014-03-11
  • 打赏
  • 举报
回复
"uTimeout   和uVersion成员为联合体。uTimeout表示气球提示超时的时间,单位为毫秒,此时间后气球提示将消失。系统默认气球提示的超时时间最小值为10秒,最大值为30秒。如果设置的uTimeout的值小于10将设置最小值,如果大于30将设置最大值。将超时时间分为最大最小两种,是因为解决不同图标的气球提示同时弹出的问题,详细内容请参考MSDN中NOTIFYICONDATA结构体说明的remarks。"
encoderlee 2014-03-11
  • 打赏
  • 举报
回复
uTimeout Note This member is deprecated as of Windows Vista. Notification display times are now based on system accessibility settings. 注意:此成员在 Windows Vista 及以后系统中已被否决。通知的显示时间现在取决于系统的辅助功能设置。
孟如庭 2014-03-11
  • 打赏
  • 举报
回复
自己顶一下,没人回答吗

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧