C++中如何使用Win32 API?最小化系统托盘的窗口?

发布于 2024-10-15 09:13:58 字数 349 浏览 8 评论 0原文

几乎是一个不言自明的标题。我正在使用 Win32 API 用 C++ 编写一个应用程序,我想知道如何最小化到系统托盘。我想,我可以在网上找到有关 C#、Python、甚至 Visual Basic 中最小化到系统托盘的各种文章,但我一生都找不到一篇关于如何在 C++ 中最小化某些内容到系统托盘的文章。

任何和所有帮助甚至重定向将不胜感激。

编辑:问题得到解答。一旦我了解了 Shell_NotifyIcon 函数,我就可以轻松找到这篇 CodeProject 文章这正是我所需要的。

Pretty much a self-explanatory title. I'm writing an application in C++ with the Win32 API, and I'd like to know how to minimize to the system tray. I can find all kinds of articles online about minimizing to the system tray in C#, Python, even Visual Basic, I think, but for the life of me I can not find a single article on how to minimize something to the system tray in C++.

Any and all help or even redirection would be highly appreciated.

EDIT: Question answered. Once I knew about the Shell_NotifyIcon function, I was easily able to find this CodeProject article which is exactly what I needed.

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

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

发布评论

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

评论(1

人间☆小暴躁 2024-10-22 09:13:58

您所需要的只是 Shell_NotifyIcon 函数。您应该能够从 MSDN 中找到答案,但如果您需要更多帮助,我确信网络上有一百万个地方可以提供示例。现在您已经知道了 API 的名称,网络搜索将填补空白。

All you need is the Shell_NotifyIcon function. You ought to be able to work it out from MSDN, but if you need more help I'm sure there are a million places on the web that give samples. Now that you know the name of the API, web search will fill in the gaps.

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