Hey Guys, just as a side note: I got the Modless windows closing in Mach MAD, by using both of the notifications in MyNotify().
#define SHUTDOWN 14 // Undocumented notification
#define JAMESSHUTDOWN 0x12000e // Undocumented notification
But out of about 112 users so far, I have 2 that STill get the crash, I suspect that there is a 3rd notification that they must get on thier computers. I had to have them "down grade" back to the previous version since I had no way to see what message ID that thier computers where throwing.
void myNotify ( int ID)
{
if ((ID == SHUTDOWN)||(ID == JAMESSHUTDOWN))
{
//AfxMessageBox("ShutDown called.");
if (NULL != dlg) {
dlg->DestroyWindow();
delete dlg;
dlg = NULL;
}
mach3CWnd.Detach();
}
} //myNotify
//scott