L_VecIsObjectSelected

#include "ltvkrn.h"

L_LVKRN_API L_BOOL L_VecIsObjectSelected(pVector, pObject)

Returns a value that indicates whether or not the specified object is selected.

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle.

const pVECTOROBJECT pObject

Pointer to a vector object.

Returns

Value Meaning
TRUE The specified object is selected.
FALSE The specified object is not selected.

Comments

If pObject is NULL and any object inside the vector handle is currently selected, this function will return TRUE.

Required DLLs and Libraries

See Also

Functions

Example

This example will determine whether or not the object under the given point is selected.

L_LTVKRNTEX_API L_INT VecIsObjectSelectedExample( 
   pVECTORHANDLE pVector, 
   POINT* pPoint) 
{ 
   VECTOROBJECT   Object;    /* Object under point */ 
   L_INT          nRet; 
 
   /* Get object under that point */ 
   nRet = L_VecHitTest( pVector, pPoint, &Object ); 
 
   /* Is there an object under that point? */ 
   if( nRet == SUCCESS ) 
   { 
      /* Show the selection state of the object */ 
      if( L_VecIsObjectSelected( pVector, &Object ) ) 
         MessageBox(NULL, TEXT("Object is selected."), TEXT("Test"), MB_OK); 
      else 
         MessageBox(NULL, TEXT("Object is not selected."), TEXT("Test"), MB_OK); 
   } 
 
   return nRet; 
} 

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

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.