CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Raleigh, NC
    Posts
    47

    CFileDialog filter

    I'm using an Open File dialog as follows:
    CFileDialog dlg(TRUE,"lst",NULL,OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_HIDEREADONLY,"*.lst",NULL);
    I want it to display all the *.lst files so that the user can choose one. But it doesn't display any files. Please help.


  2. #2
    Join Date
    Apr 1999
    Posts
    396

    Re: CFileDialog filter

    CFileDialog dlg(TRUE,"lst",NULL,OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_HIDEREADONLY,"List Files|*.lst||",NULL);

    Format is [Description]|[Filter]|{...}||



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