www
来源:互联网 发布:iphone视频后期软件 编辑:程序博客网 时间:2024/05/17 01:52
void CwayDoc::OnFileOpen()
{
// TODO: 在此添加命令处理程序代码
CFileDialog my(true);
if( my.DoModal() == IDOK )
{
CString FileName = my.GetPathName();
CString FileExt = my.GetFileExt();
if((FileExt == "AVI ") || (FileExt == "avi "))
{
CMyApp * pMyApp = (CMyApp *)AfxGetApp();
CMultiDocTemplate*pAVIDocTemplate=pMyApp-> m_pAVIDocTemplate;
pAVIDocTemplate-> OpenDocumentFile(FileName);
}
else if((FileExt == "BMP ") || (FileExt == "bmp "))
{
CMyApp * pMyApp = (CMyApp *)AfxGetApp();
CMultiDocTemplate* pDATDocTemplate=pMyApp-> m_pBMPDocTemplate;
pDATDocTemplate-> OpenDocumentFile(FileName);
}
else {
AfxMessageBox( "Yor select a file not supported! ");
return;
}
}
}
{
// TODO: 在此添加命令处理程序代码
CFileDialog my(true);
if( my.DoModal() == IDOK )
{
CString FileName = my.GetPathName();
CString FileExt = my.GetFileExt();
if((FileExt == "AVI ") || (FileExt == "avi "))
{
CMyApp * pMyApp = (CMyApp *)AfxGetApp();
CMultiDocTemplate*pAVIDocTemplate=pMyApp-> m_pAVIDocTemplate;
pAVIDocTemplate-> OpenDocumentFile(FileName);
}
else if((FileExt == "BMP ") || (FileExt == "bmp "))
{
CMyApp * pMyApp = (CMyApp *)AfxGetApp();
CMultiDocTemplate* pDATDocTemplate=pMyApp-> m_pBMPDocTemplate;
pDATDocTemplate-> OpenDocumentFile(FileName);
}
else {
AfxMessageBox( "Yor select a file not supported! ");
return;
}
}
}
- www
- www
- www
- WWW
- www
- www
- www
- www
- @www
- www
- WWW
- www
- www
- www
- www
- www
- www
- www
- 关于Unity3D中的版本管理
- 无
- nil Nil NULL NSNull
- uboot命令
- js 时间比较
- www
- JList常见用法总结
- 同时使用afxsock.h及winsock2.h的方法 error C2011: 'fd_set' : 'struct' type redefinition的问题
- 安装XEClient使用PL/SQL链接Oracle
- 青春是什么
- 2012-01-09
- Hadoop之JobTrack分析
- Windows XP下在移动硬盘上安装Fedora16
- JTable的清空小技巧以及JTable的详细介绍