DTWAIN_RangeSetAll
The DTWAIN_RangeSetAll function sets the low, high, step, default, and current values in the DTWAIN_RANGE.
DTWAIN_BOOL DTWAIN_RangeSetAll (
Parameters Range A valid DTWAIN_RANGE type.
lpMin Address of Minimum value.
lpMax Address of Maximum value
lpStep Address of Step value
lpDef Address of default value or NULL
lpCur Address of current value or NULL
Return Values If the function succeeds, TRUE is returned. If the function fails FALSE is returned.
Comments The DTWAIN_RangeSetAll function sets all of the values that define the DTWAIN_RANGE. The addresses of the values that will be set by DTWAIN_RangeSetAll must be passed, not the actual values. Since DTWAIN_RANGEs can differ in data types, the caller to this function is responsible in seeing that the data residing at the address matches the data type (either DTWAIN_RANGELONG or DTWAIN_RANGEFLOAT).
If the lpDef or lpCur values are NULL, the default (denoted by lpDef) or the current value (denoted by lpCur) is set to 0.
TWAIN State Transitions None.
Prerequisite Function Call(s)
See Also |