#include "ltwrappr.h"
virtual L_UINT32 LAnnotation::GetTag()
Gets the tag of the annotation object.
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. |
Win32, x64.
See Also
Functions: |
|
Topics: |
Example
L_INT LAnnotation_GetTagExample(LAnnotation& LeadAnn) { L_INT nRet; 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) { nRet = LeadAnn.SetSelected(TRUE,ANNFLAG_RECURSE) ; if(nRet != SUCCESS) return nRet; nRet = LeadAnn.SetTag( 3, ANNFLAG_SELECTED); if(nRet != SUCCESS) return nRet; } } uAnnType = LeadAnn.GetType() ; if (uAnnType == ANNOBJECT_ELLIPSE) MessageBox(NULL, TEXT("Annotation has an ellipse object ..."), TEXT("Notice"),MB_OK) ; return SUCCESS; }