I always get good help from this site.
This time i am in a situation where I need to check before I close the tabbed window.
the window class is inherited from CWnd class
So, when user request for window close, I need to check if any thread is running or not, if running i want to prompt the user. if user want i want to close the window in proper manner without.
I am not having the manner problem. But I am failing to find out how to cancel the window getting close. both of OnClose and OnDestroy return void. how to handle this thing?