LWia::EnumItemsCallBack

Summary

Called for each found child item for the parent item specified in the LWia::EnumChildItems function. Be sure to first enable the callback functions by calling LBase::EnableCallBack(TRUE).

Syntax

#include "ltwrappr.h"

virtual L_INT LWia::EnumItemsCallBack(nItemsCount, pItem)

Parameters

L_INT nItemsCount

Enumerated items count.

L_VOID * pItem

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

Returns

Value Meaning
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's responsibility to free the received item by calling LWia::FreeItem.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LWia::GetRootItem.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.