L_ClrDlg
#include "ltkrn.h"
#include "ltclr.h"
L_INT EXT_FUNCTION L_ClrDlg(nDlg, hWnd, pClrHandle, pPramas)
L_INT nDlg; |
/* dialog constant */ |
HANDLE hWnd; |
/* handle to the parent window */ |
HANDLE * pClrHandle; |
/* pointer to the output color handle */ |
LPCONVERSION_PARAMS pParams; |
/* pointer to the output conversion params */ |
Displays a color space dialog box to initialize, and creates a color handle and CONVERSION_PARAMS data.
Parameter |
Description |
|
nDlg |
The color space dialog to display. Possible values are: |
|
|
Value |
Meaning |
|
DLG_CMYK |
CMYK dialog. |
|
DLG_LAB |
LAB dialog. |
hWnd |
Handle to parent window. |
|
pClrHandle |
Pointer to color handle to be set by the dialog. Pass NULL if it is not needed. |
|
pParams |
Pointer to a CONVERSION_PARAMS structure to be set by the dialog. Pass NULL if it is not needed. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This is another way of initializing the toolkit without using L_ClrInit. You can use it to retrieve a Color handle and/or a CONVERSION_PARAMS structure, for use later in initialization or modification by L_ClrSetConversionParams.
Required DLLs and Libraries
LTCLR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application
See Also
Functions: |
|
Topics: |
|
|
Example
// This example opens the CMYK dialog and creates a color
handle and CONVERSION_PARAMS data.
void GetCMYKParams(HWND hWnd, HANDLE * pClrHandle, LPCONVERSION_PARAMS
pParams)
{
L_ClrDlg(DLG_CMYK,
hWnd, pClrHandle, pParams);
}