|
发表于 2017-4-13 16:30:37
|
显示全部楼层
void CCreatTaskBatchDlg::LoadImage(CString strPath)
{
m_bFinish=FALSE;
CFileFind fileFinder;
CString filePath = strPath + _T("\\*.*");
BOOL bFinished = fileFinder.FindFile(filePath);
while(bFinished)
{
bFinished = fileFinder.FindNextFile();
if(fileFinder.IsDirectory() && !fileFinder.IsDots())
{
LoadImage(fileFinder.GetFilePath());
}
else
{
CString fileName = fileFinder.GetFileName();
CString strFileExt = PathFindExtension(fileName);
}
} |
|