VC:CFileDialog(GetNextPathName、GetFileName)
static char sfile[]="记事本(*.txt)|*.txt";//文件过滤器
CFileDialog dlg(TRUE,"txt"," ",OFN_ALLOWMULTISELECT,sfile);
// CFileDialog ( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL );
int result=dlg.DoModal();
if(result==IDOK)
{
CString path=dlg.GetPathName();
CString file=dlg.GetFileName();
CString ext=dlg.GetFileExt();
CString title=dlg.GetFileTitle();
// POSITION pos;
//CString nextpath=dlg.GetNextPathName(pos);
MessageBox(path+"/"+file+"/"+ext+"/"+title);
}