Application does not terminate on shutdown
Posted on 1997-05-14
I coded an application with delphi2 which runs in the system tray.
I am using the TrayIcon component for this.
But when shutting down Windows while my application runs, it does only terminate if it is not minimized.
Seems as if it could have something to do with TrayIcon...
Of course I read several FAQs on this topic and found some hints concerning WM_QUERYENDSESSION and WM_ENDSESSION, but if my application is minimized the message handler does not even get the WM_QUERYENDSESSION message.