C++ Class Library

The LEADTOOLS C++ Class Library is a wrapper to the LEADTOOLS C API and provides only a subset of the features and functionality otherwise available in the LEADTOOLS C API. For more information about the full feature set of the LEADTOOLS C API, refer to LEADTOOLS C API Introduction.

Is this page helpful?

In this page

LVectorDialog::IsNoDuplicateEnabled

Summary

Indicates whether to allow duplicate layer names within the same vector.

Syntax

#include "ltwrappr.h"

L_BOOL LVectorDialog::IsNoDuplicateEnabled() const;

Returns

Value Meaning
TRUE Do not allow duplicate layer names in a vector.
FALSE Allow duplicate layer names in a vector.

Comments

This function returns the value of the internal setting that indicates whether to allow duplicate layer names within the same vector.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will call the DoModalVectorNewLayer() dialog, and return the selected values
Will not allow creation of duplicate layers.

Copied to clipboard
L_INT LVectorDialog__IsNoDuplicateEnabledExample(HWND hWnd, LVectorBase *pVector) 
{ 
   L_INT          nRet; 
   LVectorDialog  VectorDlg; 
 
   VectorDlg.SetVector(pVector); 
 
   VectorDlg.EnableAutoProcess(); 
 
   if (VectorDlg.IsNoDuplicateEnabled() == FALSE) 
   { 
      MessageBox(hWnd, TEXT("Setting the 'No Duplicate Flag'"), TEXT(""), MB_OK); 
   } 
 
   VectorDlg.EnableNoDuplicate(); 
 
   L_BOOL bActiveLayer = TRUE; 
 
   LVectorLayer VectorLayer; 
 
   nRet = VectorDlg.DoModalVectorNewLayer(hWnd, &VectorLayer, &bActiveLayer); 
   if (nRet == SUCCESS) 
   { 
      L_TCHAR           szMsg[200]; 
      VECTORLAYERDESC   Desc; 
 
      nRet = VectorLayer.GetLayerDesc(&Desc);  
      if(nRet != SUCCESS) 
         return nRet; 
 
      wsprintf(szMsg, TEXT("New Layer\nName[%s]\nVisible[%d]\nLocked[%d]"), 
               Desc.szName, 
               Desc.bVisible, 
               Desc.bLocked 
               ); 
      MessageBox(hWnd, szMsg, TEXT(""), MB_OK); 
   } 
   else 
      return nRet; 
 
   return SUCCESS; 
} 

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

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.