LEADTOOLS Raster Imaging C++ Class Library Help > Classes and Member Functions > LBitmapBase > LBitmapBase Member Functions > LBitmapBase::EnableFileName |
#include "ltwrappr.h"
L_BOOL LBitmapBase::EnableFileName(bEnableFileName)
L_BOOL bEnableFileName; |
/* flag that indicates whether to enable the file name */ |
Enables or disables use of the internal filename.
Parameter |
Description |
|
bEnableFileName |
Flag that indicates whether to enable the file name. Possible values are: |
|
|
Value |
Meaning |
|
TRUE |
Enable the file name. |
|
FALSE |
Disable the file name. |
Returns
The previous setting.
Comments
Call this function to enable or disable use of the internal filename. Enabling use of the internal filename will cause automatic transferring of the file name when using the LDialogBase and the LFile classes for loading and saving files.
The internal filename is used in two ways:
1. |
If use of the internal filename is enabled when using LDialog and LFile classes, then setting or changing the file name in these classes will cause the changed filename to be transferred to the LBitmapBase object automatically. |
2. |
If use of the internal filename is not enabled then no automatic transferring of filename will be done the caller is responsible for maintaining the filename for the image. |
The default setting is TRUE.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
See Also
Functions: |
LBitmapBase::GetFileName, LBitmapBase::SetFileName, Class Members |
Example
For an example, refer to LBitmapBase::IsFileNameEnabled.