Hello, people
I am writing an application which is intended to run for very long periods of time. As it is now the application, when minimised, puts an icon in the system tray and happily runs in the background.
I would also like the application to minimise into the system tray when the user clicks in the close button (X button in top right-hand corner) or if they select close from the system menu. Basically I want to be really sure that the user want to close the application and to do this I want them to specifically select Close from the file menu, where they will be prompted to make sure.
I thought that I would implement it in the OnClose handler in the MainFrame class. However, there is no way (well, none that I can find) of determining the WM_CLOSE message's source.
Any help on this would be much appreciated.
Thanks.
The framework calls this member function when the user selects a command from the Control menu, or when the user selects the Maximize/Minimize or Close button.