The ICCPROFILEDLGPARAMS structure provides information used to initialize the dialog box created by the L_DlgICCProfile function. After the user closes the dialog box, this structure is updated with information about the user's selections.
typedef struct _ICCPROFILEDLGPARAMS
{
L_UINT uStructSize;
ICCPROFILEEXT ICCProfile;
L_TCHAR szLoadFile [L_MAXPATH];
L_TCHAR szSaveFile [L_MAXPATH];
L_UINT32 uDlgFlags;
LPPOINT pptPosition;
LTCOMMDLGHELPCB pfnHelpCallback;
L_VOID * pHelpCallBackUserData;
} ICCPROFILEDLGPARAMS, * LPICCPROFILEDLGPARAMS;
Size of this structure, in bytes. Use the sizeof operator to calculate this value.
A structure that contains the ICC Profile. If this structure contains ICC Profile data the dialog Save button control will be enabled at dialog start up.
Character string that contains the name of the file to load ICC Profile from.
Character string that contains the name of the file to save ICC Profile to.
Flag that determines the layout and action of the dialog. Possible values are:
Value | Meaning |
---|---|
DLG_ICCPROFILE_SHOW_CONTEXTHELP | [0x00000001] Dialog should contain a context sensitive help icon. |
DLG_ICCPROFILE_SHOW_SAVE | [0x00000002] Dialog should contain Save ICC Profile options. |
DLG_ICCPROFILE_SHOW_LOAD | [0x00000004] Dialog should contain Load ICC Profile options. |
Pointer to an optional help callback function. If you do not wish to provide help to this dialog, use NULL as the value of this parameter. To provide help to this dialog, use the function pointer as the value of this parameter. The callback function must adhere to the prototype described in LTCOMMDLGHELPCB.
Void pointer that you can use to pass one or more additional parameters that the 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, which receives the address in its own pHelpCallBackUserData parameter, 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.