托盘图标问题

发布于 2024-07-26 15:49:29 字数 100 浏览 3 评论 0原文

我有一个程序,当发生某些事件时,它会显示托盘图标、弹出窗口和气球。 当我更改尝试图标的图像时出现问题,事件发生时不会弹出气球,我可能会错过什么?

阿卜杜勒·哈利克

i have a program which displays tray icon and popups and balloon when some event occurs. The problem arises when i change the image of the try icon no balloon popups when the event occurs what could i be missing?

Abdul khaliq

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一个人的旅程 2024-08-02 15:49:29

也许当您更改图标时,其 ICONDATA 会被修改,系统将不再显示气球或修改通知图标。 甚至可能错误地设置了 cbSize 结构成员。

检查尝试弹出时 Shell_NotifyIcon 是否返回 TRUE。 如果FALSE,还检查dwMessage 成员,是否设置为例如NIM_SETVERSION。 这可能意味着给定的 ICONDATA 结构版本不受支持,例如 文档 说。

另外,如果出现故障,请使用 GetLastError 函数检查实际错误。

Maybe when you're changing the icon, its ICONDATA gets modified in a way that the system won't show the balloon or modify the notification icon anymore. It could be even incorrectly set cbSize struct member.

Check if Shell_NotifyIcon returns TRUE when trying to pop up. If FALSE, also check the dwMessage member, whether it's set to e.g. NIM_SETVERSION. That could mean that the ICONDATA structure's version given is unsupported, like the documentation says.

Also in case of a failure check the actual error with the GetLastError function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文