void CARODlg::ShowExitDialogAndQuit(void) { if ( !theApp.bIsSavedData) { SetTimer(TIMER_SHOW_SAVEDATA_NAG, nNag_Time, 0) ; return; } theApp.AddToLog(_T("PostQuitMessage : ShowExitDialog" )); DestroyWindow(); PostQuitMessage(0); }
DestroyWindow(); // this will likely destroy the message pump in your main window PostQuitMessage(0); // this will try to post a message in a Window that no longer exists.
PostQuitMessage
WM_DESTROY
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)