L_AnnGetActiveState

#include "l_bitmap.h"

L_INT EXT_FUNCTION L_AnnGetActiveState(hObject, puState)

HANNOBJECT hObject;

/* handle to the annotation object */

L_UINT L_FAR * puState;

/* address of the variable to be updated */

Gets the activation state of the specified object. This function is available in the Document/Medical Toolkits.

Parameter

Description

hObject

Handle to the annotation object.

puState

Address of the variable to be updated with the object's activation state constant. Possible activation state values are:

 

Value

Meaning

 

ANNACTIVE_DISABLED

[0] The object is disabled. It will not respond to activation events.

 

ANNACTIVE_ENABLED

[1] The object is enabled. It will respond to activation events.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The following types of objects respond to activation events:

image\sqrblit.gif Automation object

image\sqrblit.gif Audio clip

image\sqrblit.gif Button

image\sqrblit.gif Hot spot

image\sqrblit.gif Freehand Hot spot

image\sqrblit.gif Push pin

image\sqrblit.gif Video

Before calling this function, you must declare a variable of data type L_UINT. Then, pass the address of the variable in the puState parameter. This function will update the variable with the annotation object's activation state constant.

Please note that Video objects can have an active state of ANNACTIVE_ENABLED only if the LEADTOOLS video DLL is present. ERROR_FEATURE_NOT_SUPPORTED is returned if the video DLL is missing.

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.

Platforms

Windows 95 / 98 / Me, Windows 2000 / XP.

See Also

Functions:

L_AnnSetActiveState, L_AnnGetUserMode,

 

L_AnnSetUserMode

Topics:

Annotation Functions: Object Properties

 

Implementing Annotations

 

Implementing an Automated Annotation Program

 

Implementing a Non-automated Annotation Program

 

Obtaining Annotation Object Information

Example

For an example, refer to L_AnnGetTag.