To implement your own message box override the virtual
CDocument::SaveModified[
^] function in your
CDocument
derived class:
BOOL CMyDocument::SaveModified()
{
if (!IsModified())
return TRUE;
}
You may also look at the default implementation in
doccore.cpp in the MFC source directory.