This function displays the "Open" dialog which can include a file preview and file information

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

Parameters

Name Explanation
hWnd The window handle
FileName The name of the selected file
FilePath The name of the directory shown in the "Open" 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 "Open" 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 "Open" dialog. If you surround the file type with "<>" as in "<JPG>" then that file type will be displayed as the default type. 
ExtendedDialog False(0): Preview and FileInfo checkbox is not displayed
True(nonzero): Preview and FileInfo checkbox is displayed
Preview Sets the file preview function when the "Open" dialog is first displayed. False (0): No preview, True (nonzero): Preview
FileInfo Sets whether or not the file information displayed when the "Open" dialog is first displayed. False(0): File information not displayed, True (nonzero): File information is displayed

Return Value

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

Explanation

The IKOpenFileDialog function displays the "Open" dialog which can include a file preview and file information. The file set in the FilePath and FileExt parameters will initially be displayed in the dialog box list. By selecting the Open button, the file name and full path are set in the FileName parameter. If ExtendedDialog is set to true, when the dialog is displayed the preview and file information checkboxes are displayed. Even if Preview and FileInfo are False, these checkboxes will be displayed. 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