LVectorBase::IsFileNameEnabled

#include "ltwrappr.h"

L_BOOL LVectorBase::IsFileNameEnabled(void);

Determines whether the use of the internal file name is enabled or disabled.

Returns

TRUE

The file name is enabled.

FALSE

The file name is not enabled.

Comments

Call this function to check if the use of the internal file name is enabled or disabled.

Required DLLs and Libraries

LVKRN

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:

LVectorBase::EnableFileName, Class Members

Topics:

Vector Images: Getting and Setting General Information

Example

L_VOID Example3(HWND hWnd)
{
   L_TCHAR szFileName[_MAX_PATH];
   L_UINT uLen;

   LVectorBase myVectorBase;

   myVectorBase.SetFileName(TEXT("s:\\temp\\images\\dxf\\test.dxf"));
   if (myVectorBase.IsFileNameEnabled())
      MessageBox(hWnd, TEXT("FileName is enabled"), TEXT(""), MB_OK);
   else
   {
      MessageBox(hWnd, TEXT("FileName NOT enabled.\nEnabling..."), TEXT(""), MB_OK);
      myVectorBase.EnableFileName();
   }
   myVectorBase.Load();

   //Get the file name--it is "test.dxf"
   myVectorBase.GetFileName(szFileName, &uLen);
}