>>609
CDocument::SetModifiedFlag()
CDocument::IsModified()
CDocument::SaveModified()