The OPENDLGPARAMS structure provides information used to initialize the dialog box created by the LDialogFile::DoModalOpen function. After the user closes the dialog box, this structure is updated with information about the user's selections.
typedef struct _OPENDLGPARAMS
L_VOID * pFileLoadCallbackUserData;
L_VOID * pHelpCallBackUserData;
} OPENDLGPARAMS, * LPOPENDLGPARAMS;
Size of this structure, in bytes. Use the sizeof operator to calculate this value.
Pointer an array of OPENDLGFILEDATA structures, where each item contains a single image file name and its related loading data. You should free this pointer using the GlobalFree function after freeing the allocated data within the structure. Therefore, for all selected files, you must free any allocated data within each structure of the array and then free this pointer.
Number of image file(s) selected in the Open dialog.
Value that indicates whether to show the Preview window, if DLG_OPEN_SHOW_PREVIEW is set in uDlgFlags. Possible values are:
|View the preview window.
|Hide the preview window.
Flag that indicates whether to show the load options when pressing the Open button on the dialog. Possible values are:
|Show the load options when pressing the Open button, and check the Show Load Options check box. This will occur whether or not DLG_OPEN_SHOW_LOADOPTIONS is set in uDlgFlags.
|Do not show the load options when pressing the Open button, and uncheck the Show Load Options check box.
Pointer to an optional file load callback function. If you do not wish to provide status updates to this dialog, use NULL as the value of this parameter. To provide status updates to this dialog, use the function pointer as the value of this parameter. The callback function must adhere to the prototype described in OPENDLGFILELOADCALLBACK.
Void pointer that you can use to pass one or more additional parameters that the File Load callback function needs. To use this feature, assign a value to a variable or create a structure that contains as many fields as you need. Then, in this parameter, pass the address of the variable or structure, casting it to L_VOID *. The callback function can cast it to a pointer of the appropriate data type to access your variable or structure. If the additional parameters are not needed, you can pass NULL in this parameter.
User interface flags for this dialog, which determine the layout and action of the dialog. Possible values are:
|[0x00000001] Dialog should contain a context sensitive help icon.
|[0x00000002] The File Load Options will contain the Progressive Passes option.
|[0x00000004] The File Load Options will contain the Multipage options.
|[0x00000008] The File Load Options will contain the Load Rotated option.
|[0x00000010] The File Load Options will contain the load compressed option.
|[0x00000020] Dialog should have the FileInfo button.
|[0x00000040] Dialog should have a preview window to preview the selected file image.
|[0x00000080] Dialog should have a delete button to delete a page in a multipage image file.
|[0x00000100] Dialog should contain the "Show Load Options" check box
|[0x00010000] Show the total number of pages on the file info dialog.
|[0x00020000] Dialog should contain the Enable Sizing option.
|[0x00040000] Do not verify that the file exists.
|[0x00080000] Do not verify that the path exists.
|[0x00100000] Dialog should preview the stamp in the image file, if it contains a stamp and the DLG_OPEN_SHOW_PREVIEW flag is set.
|[0x00200000] Load the image when the Open button is pressed and put it in pBitmap.
|[0x00400000] Generate the image thumbnail or create one when the Open button is pressed and put it in pThumbnail.
|[0x00800000] Load all files compressed. The OPENDLGFILEDATA. bLoadCompressed member will be initialized with TRUE and will be updated with TRUE for all files loaded in the Open dialog, unless the settings are changed in the Load Options dialog. The Load Options dialog is displayed when the Open button is pressed in the Open dialog if the OPENDLGPARAMS. bShowLoadOptions member is set to TRUE, or the "Show Options on Open" check box has been checked in the Open dialog.
|[0x01000000] Load all files in their rotated state, if the image was saved with a rotated view perspective in the file. The OPENDLGFILEDATA. bLoadRotated member will be initialized with TRUE and will be updated with TRUE for all files loaded in the Open dialog, unless the settings are changed in the Load Options dialog. The Load Options dialog is displayed when the Open button is pressed in the Open dialog if the OPENDLGPARAMS. bShowLoadOptions member is set to TRUE, or the "Show Options on Open" check box has been checked in the Open dialog.
|[0x04000000] Force the Open dialog to return the file name even if it is not a bitmap.
|[0x08000000] The Open File Options dialog will have "XPS options" tab.
|[0x10000000] The Open File Options dialog will have "XLS options" tab.
|[0x20000000] The Open File Options dialog will have "Rasterize Document options" tab.
|[0x40000000] Make the File Information dialog modeless.
|[0x00001000] The Open File Options dialog will have "VFF options" tab.
|[0x00002000] The Open File Options dialog will have "ANZ options" tab.
|[0x00004000] The Open File dialog will attempt to load corrupted files.
|[0x00008000] The Open File dialog will have the "Load multithreaded" option.
|[0x100000000] Forces the File Open dialog to always use multi-threaded load.
|[0x200000000] Forces the File Open dialog to treat SVG files as Vector.
Specifies how OpenFileDialog displays the items in the ListView control. For a list of possible values, refer to INITIALVIEWENUM.