preventing view from closing
Posted on 2002-07-25
I'm writing an MDI application using MFC and I want to prevent an MDI child window from closing when there is a wrong value entered in one of the controls.
I tried catching WM_CLOSE of the view, but it doesn't work, the window just closes without my OnClose getting invoked.
Does anyone know how to solve this? There mustn't be any possibility left to close that window or quit the application (except killing the task ;-) when my view doesn't want to close.