In vc++ 6.0,MFC i want to select a multiple files
CFileDialog opendialog(true); // opens the dialog for open;;<br>
opendialog.m_ofn.lpstrTitle="SELECT FILE"; //selects the file title;;<br>
opendialog.m_ofn.lpstrFilter="text files (*.txt)\0*.txt\0"; //selects the filter;;<br>
if(opendialog.DoModal()==IDOK) //checks wether ok or cancel button is pressed;;
{
srcfilename=opendialog.GetPathName(); //gets the path name;;
--------------
--------------
}
The sample of code above it allows only single file can be select at a time,but i want select a multiple text files eg : holding control key (ctrl+select the multiple files). so any body give the solution thanks in advance.