AttachAnnoHandle

Usage                          AttachAnnoHandle(pAnno As Long)

 

Description

 

Destroys the internal annotation handle, and attaches the pAnno handle to the BiAnno.OCX. Subsequent BiAnno.OCX calls will operate on the pAnno handle.

 

Use this function if you have annotations loaded by one of the BiAnno.dll or BiTiff.dll functions (CreateAnnoHandle or LoadAnnotationFromTiffW, for example), and you would like to use the functions of the BiAnno.OCX to modify the annotations.

 

Parameters                 pAnno            Long                The annotation handle

 

Return value      None

 

Programming Notes

 

The OCX does not free the attached annotation handle automatically. Every handle created by the BiAnno.dll functions must be manually freed when no longer used, by using the DestroyAnnoHandle method from the BiAnno.dll.