CloseAllDocuments 百科内容来自于: 百度百科

介绍

类: CWinApp
头文件:
afxwin.h
功能:
调用这个函数在退出之前关闭所有打开的文档。
语法:
void CloseAllDocuments(BOOL bEndSession);
参数:
bEndSession 指定Windows会话是否要结束。如果为TRUE,则会话结束;否则为FALSE,会话不结束。
说明:
在调用CloseAllDocuments之前要调用HideApplication.

示例

/**********************************************
演示函数原型: theApp->CloseAllDocuments(TRUE);
程序功能说明: 关闭所有打开的文档并结束会话。
************************************************/
//派生类
class CMyApp: public CWinApp  
{  public:  CTestApp( );  
CString str;//添加的对话框变量  
...  }
//CMyApp类型指针theApp 
...  }
CMyApp *theApp=(CMyApp *)AfxGetApp( );
//关闭所有打开的文档并结束会话
theApp->CloseAllDocuments(TRUE);
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定