Products | Support | Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Common Dialog C++ Class Library Help

OPENDLGPARAMS

Show in webframe

typedef struct _OPENDLGPARAMS 
{
   L_UINT uStructSize; 
   LPOPENDLGFILEDATA pFileData; 
   L_INT nNumOfFiles; 
   L_BOOL bPreviewEnabled; 
   L_BOOL bShowLoadOptions;
   LTCOMMDLGFILEPREVIEWDATACB pfnFilePreviewData;
   OPENDLGFILELOADCALLBACK pfnFileLoadCallback; 
   L_VOID  * pFileLoadCallbackUserData;
   L_UINT32 uDlgFlags; 
   LTCOMMDLGHELPCB pfnHelpCallback; 
   L_VOID  * pHelpCallBackUserData;
   INITIALVIEWENUM InitialView;
} OPENDLGPARAMS, * LPOPENDLGPARAMS;

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.

Member

Description

uStructSize

Size of this structure, in bytes. Use the sizeof operator to calculate this value.

pFileData

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.

nNumOfFiles

Number of image file(s) selected in the Open dialog.

bPreviewEnabled

Value that indicates whether to show the Preview window, if DLG_OPEN_SHOW_PREVIEW is set in uDlgFlags. Possible values are:

 

Value

Meaning

 

TRUE

View the preview window.

 

FALSE

Hide the preview window.

bShowLoadOptions

Flag that indicates whether to show the load options when pressing the Open button on the dialog. Possible values are:

 

Value

Meaning

 

TRUE

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.

 

FALSE

Don©t show the load options when pressing the Open button, and uncheck the Show Load Options check box.

 

pfnFilePreviewData

 

pfnFileLoadCallback

Ignored.

pFileLoadCallbackUserData

Ignored.

InitialView

Specifies how OpenFileDialog  displays the items in the ListView control.

 

Value

Meaning

 

DLG_VIEW_LIST

[0x00000000] Dialog will display files as list

 

DLG_VIEW_ICONS

[0x00000001] Dialog will display files as icons view.

 

DLG_VIEW_TILES

[0x00000002] Dialog will display files as tiles view.

 

DLG_VIEW_THUMBNAILS

[0x00000003] Dialog will display files as thumbnails view.

uDlgFlags

User interface flags for this dialog, which determine the layout and action of the dialog. Possible values are:

 

Value

Meaning

 

DLG_OPEN_SHOW_CONTEXTHELP

[0x00000001] Dialog should contain a context sensitive help icon.

 

DLG_OPEN_SHOW_PROGRESSIVE

[0x00000002] The File Load Options will contain the Progressive Passes option.

 

DLG_OPEN_SHOW_MULTIPAGE

[0x00000004] The File Load Options will contain the Multipage options.

 

DLG_OPEN_SHOW_LOADROTATED

[0x00000008] The File Load Options will contain the Load Rotated option.

 

DLG_OPEN_SHOW_LOADCOMPRESSED

[0x00000010] The File Load Options will contain the load compressed option.

 

DLG_OPEN_SHOW_FILEINFO

[0x00000020] Dialog should have the FileInfo button.

 

DLG_OPEN_SHOW_PREVIEW

[0x00000040] Dialog should have a preview window to preview the selected file image.

 

DLG_OPEN_SHOW_DELPAGE

[0x00000080] Dialog should have a delete button to delete a page in a multi-page image file.

 

DLG_OPEN_SHOW_LOADOPTIONS

[0x00000100] Dialog should contain the "Show Load Options" check box

 

DLG_OPEN_VIEWTOTALPAGES

[0x00010000] Show the total number of pages on the file info dialog.

 

DLG_OPEN_ENABLESIZING

[0x00020000] Dialog should contain the Enable Sizing option.

 

DLG_OPEN_NOFILEMUSTEXIST

[0x00040000] Do not verify that the file exists.

 

DLG_OPEN_NOPATHMUSTEXIST

[0x00080000] Do not verify that the path exists.

 

DLG_OPEN_USEFILESTAMP

[0x00100000] Dialog should preview the stamp in the image file, if it contains a stamp and the DLG_OPEN_SHOW_PREVIEW flag is set.

 

DLG_OPEN_LOADBITMAP

[0x00200000] Load the image when the Open button is pressed and put it in pBitmap.

 

DLG_OPEN_GENERATETHUMBNAIL

[0x00400000] Generate the image thumbnail or create one when the Open button is pressed and put it in pThumbnail.

 

DLG_OPEN_ALWAYSLOADCOMPRESSED

[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.

 

DLG_OPEN_ALWAYSLOADROTATED

[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.

 

DLG_OPEN_LOADANY

[0x04000000] Force the Open dialog to return the file name even if it is not a bitmap.

 

DLG_OPEN_SHOW_XPSOPTIONS

[0x08000000] The Open File Options dialog will have ©XPS options© tab.

 

DLG_OPEN_SHOW_XLSOPTIONS

[0x10000000] The Open File Options dialog will have ©XLS options© tab.

 

DLG_OPEN_SHOW_RASTERIZEDOCUMENTOPTIONS

[0x20000000] The Open File Options dialog will have ©Rasterize Document options© tab.

 

DLG_OPEN_FILEINFO_MODELESS

[0x40000000] Make the File Information dialog modeless.

 

DLG_OPEN_SHOW_VFFOPTIONS

[0x00001000] The Open File Options dialog will have ©VFF options© tab.

 

DLG_OPEN_SHOW_ANZOPTIONS

[0x00002000] The Open File Options dialog will have ©ANZ options© tab.

pfnHelpCallback

Ignored.

pHelpCallBackUserData

Ignored.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.