LVectorDialog::IsValid

Summary

Determines whether the LVectorDialog object is valid.

Syntax

#include "ltwrappr.h"

L_BOOL LVectorDialog::IsValid(L_VOID)

Returns

Value Meaning
TRUE There is a pointer to a valid bitmap object.
FALSE There is not a pointer to a valid bitmap object.

Comments

Call this function to check if the class object has been associated with a valid LVectorBase object.

Before you can use some of the LVectorDialog functions, a vector must be associated with the class object. Until you have associated a valid vector object with the LVectorDialog object, this function will return false.

In particular, you cannot perform auto-processing without a valid bitmap.

Required DLLs and Libraries

See Also

Functions

Example

L_INT LVectorDialog__IsValidExample(HWND hWnd) 
{ 
   L_INT          nRet; 
   LVectorBase    Vector; 
   LVectorDialog  VectorDlg; 
 
   //Dialog is invalid unless associated with a vector 
   if (VectorDlg.IsValid ()) 
      MessageBox(hWnd, TEXT("IsValid() returns TRUE"), TEXT(""), MB_OK); 
   else 
      MessageBox(hWnd, TEXT("IsValid() returns FALSE"), TEXT(""), MB_OK); 
 
   nRet = Vector.Load(MAKE_IMAGE_PATH(TEXT("random.dxf"))); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   VectorDlg.SetVector(&Vector); 
 
   //Now dialog is valid 
   if (VectorDlg.IsValid()) 
      MessageBox(hWnd, TEXT("IsValid() returns TRUE"), TEXT(""), MB_OK); 
   else 
      MessageBox(hWnd, TEXT("IsValid() returns FALSE"), TEXT(""), MB_OK); 
 
   //destructor called when out of scope 
 
   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.