我用的是CEditView 每次关闭程序的时候 都提示我是否保存信息, 我该如何把这个提示信息给屏蔽掉? 我实在不想它每次关闭的时候都跳出那个提示框。 谢谢
解决方案 »
- 高手进!CreateProcess函数创建的子进程如何在其父进程退出后也跟着退出?
- 服务端和客户端通信,客户端接收信息不正确,为何?
- IOCP 关于GetNextReadBuffer的问题 pBuffer->next总是为空
- 怎样让SHBrowseForFolder以cfiledialog形式打开文件夹?
- 获得对话框句柄
- 侯杰的深入浅出源码咋没有工程文件呢?
- 请大侠帮忙看看我程序?
- 在Win2000下如何做才能使我的程序在未登陆的情况下就运行(除做成服务外)
- 两个有关文件处理的初级问题?
- 关于IOleInPlaceObjectWindowless 的键盘事件处理
- ●●有没有计算时间差的函数?●●
- 求助:动态抓屏技术,只抓屏幕变化的部分区域!
参看mfc编程实例
return true;
virtual BOOL SaveModified( );Return ValueNonzero if it is safe to continue and close the document; 0 if the document should not be closed.ResCalled by the framework before a modified document is to be closed. The default implementation of this function displays a message box asking the user whether to save the changes to the document, if any have been made. Override this function if your program requires a different prompting procedure. This is an advanced overridable
BOOL CEditViewDoc::SaveModified()
{
// TODO: Add your specialized code here and/or call the base class
return true;
}
SetModifiedFlag(false);
也试过了,OK。