DTwainSource::IsCapContainerRange

Top  Previous  Next

Syntax

bool DTwainSource::IsCapContainerRange( LONG lCap ) const;

 

Parameters

lCap

Capability to test to see if values are returned in a DTwainRange type.  See main help manual for capabilities.

 

Return Value

Returns true if the capability is supported by the Source and uses a DTwainRange to store the data, false otherwise.

 

Comments

The DTwainSource::IsCapContainerRange can be used to determine if the values returned from querying a capability is in the Range format.  A range is an array of five values:

 

1.minimum value
2.maximum value
3.step value
4.current value
5.default value

 

See Example 6 for code that uses DTwainSource::IsCapContainerRange.