16,472
社区成员
发帖
与我相关
我的任务
分享
void CTestDlg1Dlg::OnButton1()
{
// TODO: Add your control notification handler code here
CString strFileName[3];
int nFile=0;
CFileDialog dlg(TRUE,NULL,NULL,OFN_ALLOWMULTISELECT);
if( dlg.DoModal() == IDOK )
{
POSITION position=dlg.GetStartPosition();
while( position )
{
strFileName[nFile++]=dlg.GetNextPathName(position);
if( nFile>2 ) break;
}
}
}