CWiauPropertyList::SetValidValues (INT,FLOAT,FLOAT,FLOAT,FLOAT,FLOAT) 方法 (wiautil.h)

CWiauPropertyList::SetValidValues (INT、FLOAT、FLOAT、FLOAT、FLOAT、FLOAT、FLOAT) 方法设置类型以及与值范围关联的 FLOAT 属性的默认、当前和有效值。 方法还将属性类型设置为 VT_R4,将子类型设置为 WIA_PROP_RANGE。

语法

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

参数

index

指定属性索引。 当 CWiauPropertyList::D efineProperty 方法返回时,将此参数设置为 *pIdx 中的值。

defaultValue

指定设备上的 属性的默认设置。

currentValue

指定设备上的 属性的当前设置。

minValue

指定值范围内的最小值。

maxValue

指定值范围内的最大值。

stepValue

指定值范围内两个连续值之间的增量。

返回值

要求

要求
目标平台 桌面
标头 wiautil.h (包括 Wiautil.h、Wiamindr.h)

另请参阅

CWiauPropertyList

CWiauPropertyList::D efineProperty

CWiauPropertyList::SendToWia

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