This function displays the "Save" dialog box which includes the file preview function. This dialog is used to select a directory and file name into which the image date is to be saved.

[C++Builder]   BOOL IKSaveFileDlg(HWND hWnd, LPSTR FileName, LPCTSTR FilePath, LPCTSTR FileExt, BOOL Preview);
[Delphi]   function IKSaveFileDlg(hWnd: HWND; FileName, FilePath, FileExt: PChar; Preview: LongBool): LongBool;

Parameters

Name Explanation
hWnd The window handle
FileName The name of the selected file or the name of the file initially displayed in the "Save" dialog
FilePath The name of the directory shown in the "Save" dialog when it is first displayed. If this parameter is blank then the current directory is shown.
FileExt This sets the types of files that are shown in the "Save" dialog when it is first displayed. To set multiple file types use a semicolon as a delimiter. Ex: "BMP;JPG". Setting an asteriks "*" will remove the term "All Files" from the dropdown menu in the "Save" dialog. If you surround the file type with "<>" as in "<JPG>" then that file type will be displayed as the default type.
Preview Sets the file preview function when the "Save" dialog is first displayed. False (0): No preview, True (nonzero): Preview

Return Value

Returns True (nonzero) if "Save" is selected. Returns False (0) if "Cancel"is selected.

Explanation

The IKSaveFileDlg function displays the "Save" dialog box which includes the file preview function. This dialog is used to select a directory and file name into which the image date is to be saved.

The FilePath and FileExt parameters set the file that is shown in the list when the "Save" dialog is initially displayed. If the FileName parameter contains the full path, then the FilePath parameter is disabled. By selecting the Save button, the file name and full path are set in the FileName parameter.

To reference a vector image in the preview , you must first execute the Ik10VectCom.dll, Ik10VectComA.dll, Ik10VectCom64.dll, or Ik10VectCom64A.dll's IKVectorGdipStart function.

 

The ImageKit10 VCL is a product created by Newtone Corporation