LDialogFile::DialogOpenCallBack

Summary

Lets you update a status bar or interrupt during the LDialogFile::DoModalOpen function operation.

Syntax

#include "ltwrappr.h"

virtual L_INT LDialogFile::DialogOpenCallBack(lpFileData, nTotalPercent, nFilePercent)

Parameters

LPOPENDLGFILEDATA lpFileData

Pointer to an OPENDLGFILEDATA structure that contains loading data for the file currently being loaded. The data in this structure is read only information.

L_INT nTotalPercent

An integer that indicates the completion percentage for loading all selected files in the Open dialog. This value will be updated every time a file finishes loading. Valid values range from 0 to 100.

L_INT nFilePercent

An integer that indicates the completion percentage for loading a single file from the selected files. Valid values range from 0 to 100.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Override this function if you wish to provide a Status bar or interrupt during the LDialogFile::DoModalOpen function operation.

This function will be called only if the callback functions are enabled; to enable callback functions for the LBase object Call LBase::EnableCallBack(TRUE).

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LDialogFile::DoModalOpen.

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

LEADTOOLS Common Dialog C++ Class Library Help

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