I use the CFileDialog class this way :

CFileDialog dlgOpenFile( TRUE, "*.xxx", NULL, OFN_FILEMUSTEXIST, "My files (*.xxx)|*.xxx||", NULL);
dlgOpenFile.DoModal();




I actually get an open file dialog box which looks and works OK (file extension, read-only check-box, ...). My only problem is that when I use the icon which lets the user create a new folder, I CAN'T SEE THE NAME I'M TYPING for the new folder (I see its icon though). The name of the folder appears only when I validate it by pressing Enter. Is it a bug of CFileDialog or do I have forgotten something that would make it work ?

Thanks for your help.