Click to See Complete Forum and Search --> : Trying to create a new folder using a CFileDialog


ans
May 17th, 1999, 08:03 AM
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.

olivier
May 18th, 1999, 10:23 AM
I try your code and it works fine ...
I have the 2 patchs for Visual C+++ 6.0 .... Maybe it comes from there ????

ans
May 19th, 1999, 08:17 AM
Thanks for you help. In fact, I use Visual C++ 5.0 with Windows NT 4.0 (Service Pack 4).