abkareem
May 21st, 1999, 01:16 AM
Dear all,
I have made an application based on CPropertySheet window. It is working very well also. But in my property pages I have a lengthy process running in worker thread. While the thread is active and process is continuing, if somebody closes the window, the application exists silently. I need to get the information that user has pressed the close button(top right X button), because I want to warn the user and terminate the process before exit if he wishes. But when I mapped the WM_CLOSE on the property sheet it never worked ?!. Why?. I need an alert to be given before the window is deleted and hence the WM_DESTROY dont work. Please help?
Thanks and regards
Kareem.
I have made an application based on CPropertySheet window. It is working very well also. But in my property pages I have a lengthy process running in worker thread. While the thread is active and process is continuing, if somebody closes the window, the application exists silently. I need to get the information that user has pressed the close button(top right X button), because I want to warn the user and terminate the process before exit if he wishes. But when I mapped the WM_CLOSE on the property sheet it never worked ?!. Why?. I need an alert to be given before the window is deleted and hence the WM_DESTROY dont work. Please help?
Thanks and regards
Kareem.