Problem:
In a COBOL Application can you add an icon to the Windows system tray.
Resolution:
Attached is an example that shows how you can add an icon to the Windows System Tray and trap mouse events on it.
The demo works by creating a Hidden window to receive the mouse button events on the icon. The hidden window is a custom class that intercepts the Windows messages by overriding the "windowProc" method.