CDirSelDialog : Folder Selection Dialog
Posted
by Basava Raju M.
on February 23rd, 2001
CDirSelDialog is derived from CFileDialog. It is customized to show only directories, and it has the following additional features :
Finally, thanks to Mihai Filimon for
his article on Folder Dialog, providing the windowproc hook to start with. In his
article, he had used "*..*" intentionally to avoid showing files in the listview control.
However, I have used ".*" as file mask for the listview control, to get better results.
Sample Usage Code for CDirSelDialog would be
CDirSelDialog dirdlg;
if( dirdlg.DoModal() == IDOK )
{
AfxMessageBox( dirdlg.GetDirName() );
}

Comments