gpt4 book ai didi

c++ - 系统托盘通知 0​​x104567911

转载 作者:可可西里 更新时间:2023-11-01 09:19:41 25 4
gpt4 key购买 nike

通知/警报窗口(显示在 Windows 系统托盘上方)是否像下面的示例一样只是一个标准窗口,所有者绘制 HMENU 还是使用 NOTIFYICONDATA 实现的? 注意:我知道实际的系统托盘图标是使用NOTIFYICONDATA实现的,但是通知窗口是否也是使用这个结构实现的?

在我的 WinAPI C++ 应用程序中,我想显示一个类似的通知,它会出现在系统托盘图标上方,有按钮、水平滚动条等。我知道我可以创建一个新的 HWND,将它放在系统托盘上方并显示,但如果有特定的 WinAPI“系统托盘通知”类/函数,我更愿意使用它,因此我的问题。

enter image description here enter image description here

最佳答案

Are notification/alert windows (that appear above the Windows System Tray) like the examples below just a standard window, owner drawn HMENU's or are they implemented using NOTIFYICONDATA?

这些是在需要时显示的自定义对话框。它们不是使用 NOTIFYICONDATA 实现的。您可以使用 Shell_NotifyIconGetRect()在需要时获取托盘图标的当前位置。

关于c++ - 系统托盘通知 0​​x104567911,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36563159/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com