CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    38

    Trying to create a new folder using a CFileDialog

    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.


  2. #2
    Join Date
    May 1999
    Location
    Paris, France
    Posts
    216

    Re: Trying to create a new folder using a CFileDialog

    I try your code and it works fine ...
    I have the 2 patchs for Visual C+++ 6.0 .... Maybe it comes from there ????


  3. #3
    Join Date
    Apr 1999
    Posts
    38

    Re: Trying to create a new folder using a CFileDialog

    Thanks for you help. In fact, I use Visual C++ 5.0 with Windows NT 4.0 (Service Pack 4).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured