Advertisement
3_2004-2005 System Services/ Functions #145664

System Tray Icon Demo

This is a demo project that uses a NOTIFYICONDATA struct and Shell_NotifyIcon() to create an icon for your application in the system tray. I also included a popup menu that is displayed at the cursor's position when the window receives a WM_LBUTTONUP message. I created a new message with ::RegisterWindowMessage, and created a message handling function for it. When messages are sent to the windows' WndProc() function, i took all the messages that were from the icon and sent them to a custom function that decides what to do according to the message. Hope this comes in handy for someone, because i haven't found many other working examples out there. Enjoy

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Upload
Original Comments (3)
Recovered from Wayback Machine