I tried WM_CLOSE. But it still crashes.
Are you saying PostMessage(AfxGetMainWnd()->m_hWnd, WM_CLOSE, NULL, NULL);
Are you saying PostMessage(AfxGetMainWnd()->m_hWnd, WM_CLOSE, SC_CLOSE, NULL);
Hi I have an MFC DLL thats called by another application. When I hit Alt-F4 on the parent window, it closes itself and my MFC DLL application...
Separate names with a comma.