L_VecGetHyperlink

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecGetHyperlink(pVector, pObject, uIndex, pTarget)

Gets information about one of the targets in the target list of a hyperlinked vector object.

Parameters

pVECTORHANDLE pVector

Pointer to the vector handle.

const pVECTOROBJECT pObject

Pointer to a VECTOROBJECT structure that contains the hyperlinked vector object for which to get the hyperlink target.

L_UINT32 uIndex

Index in the target list.

pVECTORLINKDESC pTarget

Pointer to a VECTORLINKDESC structure to be updated with the hyperlink target information.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function returns an error if the object was not a hyperlinked vector object.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_LTVKRNTEX_API L_INT VecGetHyperlinkExample( 
   pVECTORHANDLE pVector, 
   pVECTOROBJECT pVecObj) 
{ 
   L_INT          nRet; 
   L_UINT         i; 
   L_UINT         uCount; 
   VECTORLINKDESC Link; 
 
   nRet   = SUCCESS; 
   uCount = L_VecGetHyperlinkCount( pVector, pVecObj ); 
 
   for( i = 0 ; i < uCount && SUCCESS == nRet ; i++ ) 
   { 
      nRet = L_VecGetHyperlink ( pVector, pVecObj, i, &Link ); 
      if( SUCCESS == nRet && TRUE == Link.bObject && VECTOR_RECTANGLE == Link.tar.vectorobject.target.nType ) 
      { 
         Link.bObject = FALSE; 
 
         lstrcpy( Link.tar.fileobject.target.szPath, MAKE_IMAGE_PATH(TEXT("cannon.jpg"))); 
         Link.tar.fileobject.hwndParent = NULL; 
 
         nRet = L_VecSetHyperlink ( pVector, pVecObj, i, &Link ); 
      } 
   } 
 
   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.