[This is preliminary documentation and subject to change.]
The COLORMATCHSETUP structure contains information that the SetupColorMatching function uses to initialize the Color Management dialog box. After the user closes the dialog box, SetupColorMatching returns information about the user's selection in this structure.
typedef struct _tagCOLORMATCHSETUP {
DWORD dwSize;
DWORD dwVersion;
DWORD dwFlags;
HWND hwndOwner;
PCTSTR pSourceName;
PCTSTR pDisplayName;
PCTSTR pPrinterName;
DWORD dwRenderIntent;
DWORD dwProofingIntent;
PTSTR pMonitorProfile;
DWORD ccMonitorProfile;
PTSTR pPrinterProfile;
DWORD ccPrinterProfile;
PTSTR pTargetProfile;
DWORD ccTargetProfile;
DLGPROC lpfnHook;
LPARAM lParam;
PCMSCALLBACKA lpfnApplyCallback;
LPARAM lParamApplyCallback;
} COLORMATCHSETUP;
When the dialog box returns, these flags are set to indicate the user's input.
This member can be set using a combination of the following flags.
Flag | Meaning |
---|---|
CMS_DISABLEICM | If set on entry, this flag indicates that the "Enable Color Management" check box is cleared, disabling all other controls. If set on exit, it means that the user does not wish color management performed. |
CMS_ENABLEPROOFING | If set on entry, this flag indicates that the Proofing controls are to be enabled, and the Proofing check box is checked. If set on exit, it means that the user wishes to do color management for a different target device than the selected printer. |
CMS_SETRENDERINTENT | If set on entry, this flag indicates that the dwRenderIntent member contains the value to use to initialize the Rendering Intent control. Otherwise, the control defaults to Perceptual rendering. This flag is set on exit if ICM is enabled. |
CMS_SETPROOFINTENT | Ignored unless CMS_ENABLEPROOFING is also set. If set on entry, and CMS_ENABLEPROOFING is also set, this flag indicates that the dwProofingIntent member is to be used to initialize the Target Rendering Intent control. Otherwise, the control defaults to Perceptual rendering. This flag is set on exit if proofing is enabled. |
CMS_SETMONITORPROFILE | If set on entry, this flag indicates that the color management profile named in the pMonitorProfile member is to be the initial selection in the monitor profile control. If the specified profile is not associated with the monitor, this flag is ignored, and the default profile for the monitor is used. |
CMS_SETPRINTERPROFILE | If set on entry, this flag indicates that the color management profile named in the pPrinterProfile member is to be the initial selection in the printer profile control. If the specified profile is not associated with the printer, this flag is ignored, and the default profile for the printer is used. |
CMS_SETTARGETPROFILE | If set on entry, this flag indicates that the color profile named in the pTargetProfile member is to be the initial selection in the target profile control. If the specified profile is not installed, this flag is ignored, and the default profile for the printer is used. If the printer has no default profile, then the first profile in alphabetical order will be displayed. |
CMS_USEHOOK | This flag specifies that the lpfnHook member contains the address of a hook procedure, and the lParam member contains a value to be passed to the hook procedure when the WM_INITDIALOG message is sent. |
CMS_MONITOROVERFLOW | This flag is set on exit if color management is to be enabled and the buffer size given in ccMonitorProfile is insufficient for the selected profile name. GetLastError returns ERROR_INSUFFICIENT_BUFFER in such a case. |
CMS_PRINTERROVERFLOW | This flag is set on exit if color management is to be enabled and the buffer size given in ccPrinterProfile is insufficient for the selected profile name. GetLastError returns ERROR_INSUFFICIENT_BUFFER in such a case. |
CMS_TARGETOVERFLOW | This flag is set on exit if proofing is to be enabled and the buffer size given in ccTargetProfile is insufficient for the selected profile name. GetLastError returns ERROR_INSUFFICIENT_BUFFER in such a case. |
CMS_USEAPPLYCALLBACK | If set on entry, this flag indicates that the SetupColorMatching function should call the function ApplyCallbackFunction. The address of the callback function is contained in lpfnApplyCallback. |
INTENT_PERCEPTUAL
INTENT_SATURATION
INTENT_RELATIVE_COLORIMETRIC
INTENT_ABSOLUTE_COLORIMETRIC
For more information, see Rendering Intents.
INTENT_PERCEPTUAL
INTENT_SATURATION
INTENT_RELATIVE_COLORIMETRIC
INTENT_ABSOLUTE_COLORIMETRIC
For more information, see Rendering Intents.
The hook procedure may call the EndDialog function.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in icm.h.
Unicode: Defined as Unicode and ANSI structures.
A Common Dialog for Color Management, DialogProc, EndDialog