LWia::EnumItemsCallBack

#include "ltwrappr.h"

virtual L_INT LWia::EnumItemsCallBack(nItemsCount, pItem)

L_INT nItemsCount;

/* enumerated items count */

L_VOID * pItem;

/* pointer to IWiaItem or IWiaItem2 interfaces */

Called for each found child item for the parent item specified in the LWia::EnumChildItems function. And it will be enabled only if you enabled the callback functions by calling LBase::EnableCallBack (TRUE).

Parameter

Description

nItemsCount

Enumerated items count.

pItem

Void pointer to IWiaItem or IWiaItem2 interface (the IWiaItem object if using WIA Version 1.0; the IWiaItem2 object if using WIA Version 2.0).

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This feature is available in LEADTOOLS version 16 or higher.

Called for each child item found for the root item specified through the LWia::EnumChildItems function. The main purpose of this callback is to find the item for which you are getting or setting the properties.

It is the user responsibility to free the received item by calling the LWia::FreeItem function.

Required DLLs and Libraries

LTWIA

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LWia::EnumChildItems, LWia::InitSession, LWia::FreeItem, LWia::EndSession, Class Members

Topics:

WIA Functionality: Property Functions

 

WIA Functionality: Callbacks

Example

For an example, refer to <Function name>

Or

An example that uses this function.