FILESAVEFORMATBPP

Summary

The FILESAVEFORMATBPP structure contains information used to customize the BPP options, and subformats included in the dialogs displayed by the LDialogFile::DoModalFileConversion and LDialogFile::DoModalSave functions.

Syntax

typedef struct _FILESAVEFORMATBPP 
{ 
   L_UINT uStructSize; 
   L_INT32 nFormatBpp; 
   L_UINT uSubFormats; 
} FILESAVEFORMATBPP, * LPFILESAVEFORMATBPP; 

Members

uStructSize

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

nFormatBpp

Value that represents the BPP options to be included in the dialog. The available options depend on the format specified in the nFormat member of the FILESAVEFORMAT structure. For more information on the available formats, BPP options and sub format options, refer to Customizing File Format Lists.

uSubFormats

Value that represents the sub-format options to be included in the dialog. The available options depend on the format specified in the nFormat member of the FILESAVEFORMAT structure and on the BPP options set in the nFormatBpp member of FILESAVEFORMATBPP. For more information on the available formats, BPP options and sub format options, refer to Customizing File Format Lists. Sub-format options may be "OR"ed to include more than one sub-format. To include more than one sub-format option, combine the options with a bitwise OR.

Comments

The values in this structure depend on the value of the nFormat member set in the FILESAVEFORMAT structure. For example, if FILESAVEFORMAT.nFormat is DLG_FF_SAVE_LEAD, then the possible BPP values are 1, 8, and 24. If you want to inlcude only the 8 and 24 BPP options, then you must allocate two FILESAVEFORMATBPP structures. Set the nFormatBpp member of one of the structures to 8 and set the nFormatBpp member of the other structure to 24. Set the corresponding uSubFormats member of each structure to the desired value. If you only want to include the progressive option, then set the uSubFormats member in each structure to DLG_FF_SAVE_SUB_CMP_PROGRESSIVE.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Common Dialog C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.