天津蒸海鲜哪家好吃:CFileDialog dlg(TRUE) 中 用TRUE和FALSE有什么区别。

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/09 19:17:43
代码如下,
void CTestdia1Doc::OnFileSaveAs()
{
// TODO: Add your command handler code here
CFileDialog dlg(TRUE);//<-这里用TRUE与FALSE有什么不同?
int ret=dlg.DoModal();
if(ret==IDOK)
{
CString pathname=dlg.GetPathName();
CString filename=dlg.GetFileName();
char tbuf[120];
sprintf(tbuf,"The %s file in %s is saved!",filename,pathname);
AfxMessageBox(tbuf);
}
}

TRUE是“打开”对话框
FALSE是“另存为”对话框

TRUE是“打开”对话框
FALSE是“另存为”对话框