What message can I intercept to stop a CFormView from closing? I've tried WM_DESTROY and WM_CLOSE, but neither one work.
What message can I intercept to stop a CFormView from closing? I've tried WM_DESTROY and WM_CLOSE, but neither one work.
WM_CLOSE is called whenever a window closes. Add a breakpoint. Does the framework call OnClose()?
Kuphryn
I had already tried that before I posted this thread. The 'OnClose()' function is never called. When I put it in my 'OnDestroy', it stops there, but it's too late and the app closes anyway.