CreateNumericContainerEnum method (Twain Control)
Builder Syntax |
int CreateNumericContainerEnum(pTW_CAPABILITY pCapability, int nType, unsigned uNumOfItems, unsigned uCurrentIndex, unsigned uDefaultIndex, void * pData); |
Delphi Syntax |
Function CreateNumericContainerEnum (pCapability: pTW_CAPABILITY; nType: L_INT; uNumOfItems: L_UINT32; uCurrentIndex: L_UINT32; uDefaultIndex: 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_ENUMERATION 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, CreateNumericContainerArray method, LockContainer method, UnlockContainer method. |
Topics: |