wwwllg,打开多文件的问题解决了,过来领分呀。
CFileDialog dlg(true, NULL, NULL, OFN_ALLOWMULTISELECT,"文件(*.xx)|*.xx|所有文件(*.*)|*.*||");
CString str(" ",65536);
CString dstr;
CString path(" ",256);
POSITION pos;
dlg.m_ofn.lpstrFile = str.GetBuffer(65536);
dlg.m_ofn.nMaxFile = 65536;
if (dlg.DoModal()==IDOK) {
m_list2.ResetContent();
pos = dlg.GetStartPosition();
while (pos) {
path = dlg.GetNextPathName(pos);
m_list2.AddString(path);
}
}
}