void CFileDemoDlg::OnBnClickedButton1()
{
CFileDialog log(TRUE, "文件", "*.*", OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT, "File(*.*)|*.*||", NULL);
if (log.DoModal()==IDOK)
{
POSITION pos = log.GetStartPosition();
while (pos!=NULL)
{
CString fileName = log.GetNextPathName(pos);
m_list.AddString(fileName);
}
}
}