Called by the framework to delete the document’s data without destroying the CDocument object itself. It is called just before the document is to be destroyed.
-------------这是csdn里面对DeleteContents()的说明。
OnNewDocument创建新文挡;
。//聊天过程,收发信息
DeleteContents();//聊天结束,服务器关闭等等
-------------这是csdn里面对DeleteContents()的说明。
OnNewDocument创建新文挡;
。//聊天过程,收发信息
DeleteContents();//聊天结束,服务器关闭等等
解决方案 »
- VS 操作PPT时出现COleDispatchException
- MFC如何实现弹出窗口后背景变灰并屏蔽
- Messagebox 如何设置MessageBox无效
- 在帮助文档MSDN里CCriticalSection的锁是可以阻塞的,可实际试了是不可以阻塞的呀
- 做游戏如何最大可能的降低cpu的占用率??
- MDI中打开文件是怎么回事?
- CFileDialog
- opengl简单的程序//哪里错了?为什么画不出小球
- VC编程,通过ADO访问数据库,怎样用一个select语句得到几个相关表的某几个字段的值?
- 谁知道MFC里子框架/视/文档三位一体结构完全建好是什么时候?100分倾情发送.
- 怎样把double x=0.234567 截断成0.2345??
- 有谁知道如何干净一个VC工程中的类
看看MSDN,DeleteContents()在什么时候调用
Called by the framework as part of the File New command. The default implementation of this function calls the DeleteContents member function to ensure that the document is empty and then s the new document as clean。
我觉的我得逻辑符合, 但是感觉whale和rich_lee更合理,到底是怎样调用的,我的头大了, 请各位快快解释之????????