Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

ANNHITTESTINFO

Show in webframe

typedef struct tagANNHITTESTINFO
{
   L_UINT uStructSize;
   L_INT nHandleIndex;
   L_INT nHandleID;
   L_INT nReserved;
} *pANNHITTESTINFO, ANNHITTESTINFO;

The ANNHITTESTINFO structure provides hit test information for the LAnnContainer::HitTest function.

Member

Description

uStructSize

Size of this structure. Use sizeof(ANNHITTESTINFO).

nHandleIndex

This is the zero-based index of the handle. This field is valid only if puResult of LAnnContainer::HitTest is updated with either ANNHIT_HANDLE or ANNHIT_USER_HANDLE. The default handles and the user handles are maintained internally as separate arrays of handles. This means that there is both a default handle "0" and a user handle "0". This index can be used with other annotation handle functions.

nHandleID

The unique ID associated with the user handle. The ID can be set with the LAnnXXX::AddUserHandle, LAnnXXX::ChangeUserHandle, or LAnnXXX::EnumerateHandles functions, where LAnnXXX represents the classes that support handles. These classes are as follows:

 

LAnnAudioClip

 

LAnnButton

 

LAnnCrossProduct

 

LAnnCurve

 

LAnnCurveClosed

 

LAnnEllipse

 

LAnnEncrypt

 

LAnnFreehand

 

LAnnFreehandHotSpot

 

LAnnHilite

 

LAnnHotSpot

 

LAnnLine

 

LAnnNote

 

LAnnPolygon

 

LAnnPoint

 

LAnnPolyline

 

LAnnPolyRuler

 

LAnnProtractor

 

LAnnPointer

 

LAnnPushPin

 

LAnnRedact

 

LAnnRectangle

 

LAnnRTF

 

LAnnRuler

 

LAnnStamp

 

LAnnText

 

LAnnTextPointer

 

LAnnToolBar

 

LAnnVideo

nReserved

Reserved for future use. Set this field to zero.

Comments

For an example showing the use of this structure, refer to LAnnContainer::HitTest.

See Also

Functions:

LAnnContainer::HitTest, LAnnContainer::Convert, LAnnContainer::RestrictCursor, LAnnotation::GetRestrictToContainer, LAnnotation::SetRestrictToContainer, LAnnotation::Define2, LAnnotation::Define

Topics:

Annotation Functions: Creating Custom Annotations

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.