CString stringbbrq=finder.GetFileName();
if(stringbbrq>=string_startrq&&stringbbrq<=string_endrq)
{
for(int ibb=0;ibb<int_selbbcount;ibb++)
{
CString stringbbpath=stringbbzml;
stringbbpath+=stringbbrq;
stringbbpath+="\\";
stringbbpath+=string_bbmc[ibb];
// MessageBox(stringpath);
FILE* fp;
if(fp=fopen(stringbbpath,"r"))
{
CString ti="正在搜索";
ti+=stringbbpath;
m_ti.SetWindowText(ti);
char ch_linestring[500];
while(!feof(fp))
{
fgets(ch_linestring,500,fp);
CString str_linestring=ch_linestring;
if(str_linestring.Find(string_cxzc)!=-1)
{ m_bbcxlist.InsertItem(0,stringbbpath,ICI_FILE_ICON);
break;
}
}
fclose(fp);
}
}
}
}
}
}
m_ti.SetWindowText("报表文件搜索完毕!");
|