In VC++ 6.0, MFC I want to select a multiple files
CFileDialog opendialog(true); // opens the dialog for open;
opendialog.m_ofn.lpstrTitle="SELECT FILE"; //selects the file title;
opendialog.m_ofn.lpstrFilter="text files (*.txt)\0*.txt\0"; //selects the filter;
if(opendialog.DoModal()==IDOK) //checks wether ok or cancel button is pressed;
{
srcfilename=opendialog.GetPathName(); //gets the path name;
...
}
The code sample above allows only a single file being selected at a time, but I want to select multiple text files, for example by holding down control key (ctrl+select the multiple files). How can I achieve this?