开发者

System Tray Icon in C++

开发者 https://www.devze.com 2023-02-09 17:06 出处:网络
I got a basic window made from C++. Wha开发者_如何学Ct 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

I got a basic window made from C++. Wha开发者_如何学Ct 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...


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


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:)

0

精彩评论

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