开发者

How is the Win32 API used in C++ to minimize a window to the system tray?

开发者 https://www.devze.com 2023-02-07 18:51 出处:网络
Pretty much a self-explanatory title. I\'m writin开发者_JAVA百科g 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 o

Pretty much a self-explanatory title. I'm writin开发者_JAVA百科g 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号