例如我向我的DOC类中添加了CList<CWzdInfo1*,CWzdInfo1*> m_WzdInfo1List的数据成员(CWzdInfo1是我自定义的一个类)
那么在DOC类的DeleteContents需要重载以适应串形化
比如:
 void CWzdDoc::DeleteContents()
{
// called with new and open document
// opportunity to initialize the data collections that make up our document
while (!m_WzdInfo1List.IsEmpty())
{
delete m_WzdInfo1List.RemoveHead();
}
C D o c u m e n t : : D e l e t e C o n t e n t s ( ) ;
}