System Tray Icon in C++

时光总嘲笑我的痴心妄想 提交于 2019-11-27 16:42:26

问题


I got a basic window made from C++. What I need to do is whenever I click the Minimize button the window will be placed in the System Tray and whenever I double click on the Icon it will restore...


回答1:


check msdn about a struct: NOTIFYICONDATA and a function:

BOOL Shell_NotifyIcon( DWORD dwMessage,PNOTIFYICONDATA lpdata);


and also a demo here.

Hope you can understand:)




回答2:


You will need to use Shell_NotifyIcon to interact with the notification area (system tray).



来源:https://stackoverflow.com/questions/4964630/system-tray-icon-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!