CFileDlg Properties
The CFileDlg class has several properties for customizing the Open and Save dialogs. These dialogs can be used with default settings without setting any of the class properties. To customize the dialogs, each property must be "unlocked" by setting a property flag to true. By default, the new constructor sets all property flags to false so that default values are used. Set the property flags after creating a new CFileDlg object and before using the Open or Save method.
Properties set before calling the Open or Save methods |
|
bSetOpenTitle |
Set true to specify the title for the Open dialog. You also can set the title simply by passing the title as the parameter of the Open method. |
sOpenTitle |
Specify the title used for the Open dialog. |
bSetSaveTitle |
Set true to specify the title for the Save dialog. |
sSaveTitle |
Specify the title used for the Save dialog. |
bSetFilterList |
Set true to specify the list of file filters. |
sFilterList |
Specify the filter list. See description under the Open method. |
bSetFilterIndex |
Set true to specify the starting index in the list of file filters. |
nFilterIndex |
The filter index to be selected when the dialog opens, starting at 1. |
bSetMaxFiles |
Set true to specify the maximum number of file names to return. |
nMaxFiles |
The maximum number of files to select. The default value is 1. |
bSetUseImageSet |
Set true to check the "Use Image Set" option in the Open dialog. |
bUseImageSet |
Sets the value of the "Use Image Set" option to true or false in the Open dialog. |
bSetFlipFitsFiles |
Set true to check the "Flip FITS Files" option in the Open dialog. |
bFlipFitsFiles |
Sets the value of the "Flip FITS Files" option to true or false in the Open dialog. |
Properties returned by the Open and Save methods |
|
bUseImageSet |
The value of the "Use Image Set" option selected in the Open dialog. |
bFlipFitsFiles |
The value of the "Flip FITS Files" option selected in the Open dialog. |
sExt |
The file extension selected in the Open or Save dialog. If more than 1 file is selected, this string is empty. |
nFilterIndex |
The index of the file extension in the Filter List that was selected in the Open or Save dialog. |
sFileName |
If 1 file is selected, this is the name of the file that was selected. If more than 1 file is selected, this specifies the path to the selected files. |