AnnoGetLayerNumber

#include “BiAnno.h”

WORD CALLBACK AnnoGetLayerNumber( INT_PTR pAnno )

Description

Returns the number of viewable layers (the number of entries in the layer list).

Parameters

INT_PTR

pAnno

Annotation handle

Return value

The number of viewable layers. Return value 0 (zero) indicates that all of the layers used in the annotation are visible and editable (this is the default).

Programming Notes

You can use this function in conjunction with the AnnoGetLayers function. First call the AnnoGetLayerNumber to retrieve the number of 16 bit data items in the array to allocate, then pass the array to the AnnoGetLayers with the exact number of retrievable layers. If the AnnoGetLayerNumber returns 0 (zero), you don't need to call the second function, because all of the layers are visible.

Code Example

None