C++中如何使用Win32 API?最小化系统托盘的窗口?
几乎是一个不言自明的标题。我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您所需要的只是 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.