How to Work with the Containers - MFC

Due to differences in Visual Basic and MFC, LEADTOOLS provides interfaces specifically for working with containers in MFC. These are discussed here.

When getting or setting capability information, it may be necessary to create a container for the capability. The structure of the container depends on the type of information in the container. LEADTOOLS supports the following types of TWAIN containers:

TW_ARRAY

TW_ENUMERATION

TW_ONEVALUE

TW_RANGE

For more information on these container types, refer to the TWAIN 1.9 Specification, available at www.twain.org.

The LEADTOOLS TWAIN toolkit provides an interface for each container type and the TW_CAPABILITY structure.

The ICapability interface represents the TW_CAPABILITY structure. This interface has two properties that are used in setting and getting the capabilities:

The ICapabilityOneValue interface represents a container of type TW_ONEVALUE. This interface has the following properties:

The ICapabilityEnumeration interface represents a container of type TW_ENUMERATION. This interface has the following properties:

The ICapabilityRange interface represents a container of type TW_RANGE. This interface has the following properties:

The ICapabilityArray interface represents a container of type TW_ARRAY. This interface has the following properties:

The ItwFrame interface represents a structure of type TW_FRAME. It contains information about the area of the image to acquire. This interface has the following properties: