CreateNumericContainerArray method (Twain Control)
Builder Syntax |
int CreateNumericContainerArray(pTW_CAPABILITY pCapability, int nType, unsigned uNumOfItems, void * pData); |
Delphi Syntax |
Function CreateNumericContainerArray (pCapability: pTW_CAPABILITY; nType: L_INT; uNumOfItems: L_UINT32; pData: L_PVOID ): L_INT; |
Overview |
Refer to How to Work with the Containers. |
Remarks
Allocates the hContainer member of the TW_CAPABILITY structure to be type TW_ARRAY and fills it with the appropriate data.
When enumerating and getting capabilities, the toolkit takes care of creating the necessary TW_CAPABILITY containers. However, if the user wants to set a capability using the SetCapability method, he or she must declare a TW_CAPABILITY container of the appropriate type (TW_ARRAY, TW_ENUMERATION, TW_RANGE, or TW_ONEVALUE).
See Also
Elements: |
FreeContainer method, CreateNumericContainerRange method, CreateNumericContainerOneValue method, CreateNumericContainerEnum method, LockContainer method, UnlockContainer method. |
Topics: |