cFileDialog
-
Hello,
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY|OFN_FILEMUSTEXIST, "SI Projekte (*.3dsi)|*.3dsi |Alle Dateien (*.*)|*.*||", this);
i only like to show my .3dsi files, but this only shows folders? Thanks, MarkThis way works.
CFileDialog dlg(TRUE, "3dsi", "*.3dsi",
OFN_HIDEREADONLY|OFN_FILEMUSTEXIST,
"SI Projekte (*.3dsi)|(*.3dsi) |Alle Dateien (*.*)|*.*||",
this);Maxwell Chen
-
Hello,
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY|OFN_FILEMUSTEXIST, "SI Projekte (*.3dsi)|*.3dsi |Alle Dateien (*.*)|*.*||", this);
i only like to show my .3dsi files, but this only shows folders? Thanks, Mark -
I call it like this char BASED_CODE szFilter[] = "3D SI Files (*.3dsi)|*.3dsi|All Files (*.*)|*.*||"; CFileDialog dlg(TRUE,"3dsi",NULL,OFN_ENABLESIZING|OFN_OVERWRITEPROMPT|OFN_HIDEREADONLY,szFilter,this); Papa while (TRUE) Papa.WillLove ( Bebe ) ;
"*.3dsi" should be passed as argument to the third parameter to select the clone, otherwise nothing would show. Maxwell Chen
-
Hello,
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY|OFN_FILEMUSTEXIST, "SI Projekte (*.3dsi)|*.3dsi |Alle Dateien (*.*)|*.*||", this);
i only like to show my .3dsi files, but this only shows folders? Thanks, Mark -
"*.3dsi" should be passed as argument to the third parameter to select the clone, otherwise nothing would show. Maxwell Chen
-
The third parameter is "the initial filename that appears in the filename edit box. If NULL, no filename initially appears." He never said he wants something by default Papa while (TRUE) Papa.WillLove ( Bebe ) ;
Specifying "*.3dsi" does not select any specific file by default. Originally I tested it with NULL as what you said, but no file appeared. So I looked at the example in MSDN, and found that something was required for the 3rd param. :) Maxwell Chen