Author: Naughter Software
Date: 04/04/2020 07:04 AM
Size: 86.9 KB
Requires: Win 10 / 8 / 7 / Vista / XP
Downloads: 2138 times
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 that is executed when you double click the icon. The class also provides auto cleanup and resurrection of icons if the shell unexpectedly crashes.
- 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.