Click to See Complete Forum and Search --> : CFileDialog filter


jmgreene
June 3rd, 1999, 10:45 AM
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.

Todd Jeffreys
June 3rd, 1999, 11:22 AM
CFileDialog dlg(TRUE,"lst",NULL,OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_HIDEREADONLY,"List Files|*.lst||",NULL);

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