CWiauPropertyList::SetValidValues(INT,FLOAT,FLOAT,FLOAT,FLOAT,FLOAT) method (wiautil.h)

The CWiauPropertyList::SetValidValues(INT,FLOAT,FLOAT,FLOAT,FLOAT,FLOAT) method sets the type, as well as default, current, and valid values for a FLOAT property associated with a range of values. The method also sets the property type to VT_R4 and subtype to WIA_PROP_RANGE.

Syntax

void SetValidValues(
  INT   index,
  FLOAT defaultValue,
  FLOAT currentValue,
  FLOAT minValue,
  FLOAT maxValue,
  FLOAT stepValue
);

Parameters

index

Specifies the property index. Set this parameter to the value in *pIdx when the CWiauPropertyList::DefineProperty method returns.

defaultValue

Specifies the default setting of the property on the device.

currentValue

Specifies the current setting of the property on the device.

minValue

Specifies the minimum value in the range of values.

maxValue

Specifies the maximum value in the range of values.

stepValue

Specifies the increment between two successive values in the range of values.

Return value

None

Requirements

Requirement Value
Target Platform Desktop
Header wiautil.h (include Wiautil.h, Wiamindr.h)

See also

CWiauPropertyList

CWiauPropertyList::DefineProperty

CWiauPropertyList::SendToWia

CWiauPropertyList::SetValidValues(INT,FLOAT,FLOAT,INT,PFLOAT)