Closing down a child window in OnInitialUpdate()
-
How should I properly close down a child window in an MDI application in OnInitialUpdate()? I've tried using GetParent()->SendMessage( WM_CLOSE ), and WM_DESTROY to no avail. WM_CLOSE doesn't seem to do anything to the window, and WM_DESTROY generates an exception in the MFC framework somewhere. Are there any other suggestions that I might try to get this to work?
-
How should I properly close down a child window in an MDI application in OnInitialUpdate()? I've tried using GetParent()->SendMessage( WM_CLOSE ), and WM_DESTROY to no avail. WM_CLOSE doesn't seem to do anything to the window, and WM_DESTROY generates an exception in the MFC framework somewhere. Are there any other suggestions that I might try to get this to work?
Hi, I'm just guessing. Have you tried WM_MDIDESTROY instead of WM_DESTROY? Martin