LAnnotation::GetTag
#include "ltwrappr.h"
virtual L_UINT32 LAnnotation::GetTag(L_VOID)
Gets the tag of the annotation object. This function is available in the Document/Medical Toolkits.
Returns
The object's tag.
Comments
You can use this tag to uniquely identify objects when they are saved in a file.
Required DLLs and Libraries
LTANN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
|
Topics: |
Example
L_VOID TestTag(LAnnotation& LeadAnn)
{
L_UINT32 ulTag ;
L_UINT uAnnType ;
ulTag = LeadAnn.GetTag() ;
if (ulTag == 3)
MessageBox (NULL, TEXT("This is what we do for No. 3"), TEXT("Notice"), MB_OK);
else
{
if (LeadAnn.IsSelected() == FALSE)
{
LeadAnn.SetSelected(TRUE,ANNFLAG_RECURSE) ;
LeadAnn.SetTag( 3, ANNFLAG_SELECTED);
}
}
uAnnType = LeadAnn.GetType() ;
if (uAnnType == ANNOBJECT_ELLIPSE)
MessageBox(NULL, TEXT("Annotation has an ellipse object ..."), TEXT("Notice"),MB_OK) ;
}