there is something that I'm not very clear about. Why do my program close when I click the cross button on the top right hand corner where I had comment the on PostMessage for the following code below? And also, why when I Post WM_DESTORY, my dialog did not close?
retValue = ::MessageBox(NULL, _T("You are about to close the application, are you sure you want to continue?"),
if(returnValue == IDYES)