I am using white with MFC project
I am storing my windows in some array. If I close window with X, I can't use reference to that window any more from my array.
But how I can detect it. I mean there is no any event fired and also methods IsClosed, IsVisible not helping me because I get same values
when this window is minimized. The only way that I found is check DisplayState and in case the window is disposed it will throw NullReferenceException.
Is there any method I can use to get this info without generating exception?
Thank you in advance.