LDialogFile::DialogOpenCallBack

#include "ltwrappr.h"

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

LPOPENDLGFILEDATA lpFileData;

/* pointer to a structure */

L_INT nTotalPercent;

/* total completion percentage */

L_INT nFilePercent;

/* completion percentage for a single file */

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

Parameter

Description

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.

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.

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

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

LTDLGFILE
LTDLGKRN
LTDLGUTL
LTDLGCTRL
LTDLGCOM
LTFIL
LTDIS
LTIMG

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:

Class Members

Topics:

Using Imaging Common Dialog

Example

For an example, refer to LDialogFile::DoModalOpen.