CTrayNotifyIcon is a free MFC/WTL (Microsoft Foundation Class/Windows Template Library) class app for creating and testing tray icon functionality.
Download
CTrayNotifyIcon is a free MFC/WTL (Microsoft Foundation Class/Windows Template Library) class app for creating and testing tray icon functionality.
CTrayNotifyIcon allows you to fully test the behavior of newly created system tray icons. The class hides a lot of the drudgery of calling the API directly and provides a nice clean C++ interface. Overloaded member functions are provided to set and get the ToolTip text, icon, and notification window. The class also provides a default implementation to bring up a context menu and provides a default menu item which is executed when you double click the icon. The class also provides auto cleanup and resurrection of icons if the shell unexpectedly crashes.
CTrayNotifyIcon Features:
All code compiles cleanly at warning level 4 and is /analyze and /permissive- clean.
Supports all of the tray functionality right up to Windows 7 which was the last version of Windows where new features were added to the Tray Notification API.
Hides the complexity of having to deal with the messy NOTIFYICONDATA structure and all its various quirks, which you probably will be familiar with if you have coded directly to the "Shell_NotifyIcon" API.
Download