void BrowseDir( CString strDir)
{
CFileFind ff;
CString szDir = strDir,strPath;
if(szDir.Right(1) != "//")
szDir += "//";
szDir += "*.*";
BOOL res = ff.FindFile(szDir);
while( res )
{
res = ff.FindNextFile();
strPath = ff.GetFilePath();
if(ff.IsDirectory() && !ff.IsDots())
{
BrowseDir(strPath);
dosth();
}
else if(!ff.IsDirectory() && !ff.IsDots())
dosth();
}
ff.Close();
}
{
CFileFind ff;
CString szDir = strDir,strPath;
if(szDir.Right(1) != "//")
szDir += "//";
szDir += "*.*";
BOOL res = ff.FindFile(szDir);
while( res )
{
res = ff.FindNextFile();
strPath = ff.GetFilePath();
if(ff.IsDirectory() && !ff.IsDots())
{
BrowseDir(strPath);
dosth();
}
else if(!ff.IsDirectory() && !ff.IsDots())
dosth();
}
ff.Close();
}

759

被折叠的 条评论
为什么被折叠?



