L_AnnCreateItem

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnCreateItem(hContainer, uObjectType, fVisible, phObject)

HANNOBJECT hContainer;

handle to the container object

L_UINT uObjectType;

type of annotation object to create

L_BOOL fVisible;

flag that indicates whether the object will be visible

pHANNOBJECT phObject;

address of the variable to be updated

Creates an annotation object in a container.

Parameter

Description

hContainer

Handle to the annotation object that is the container for the object to be created.

uObjectType

The type of annotation object to create. For descriptions of object types, refer to Types of Annotations.

fVisible

Flag that indicates whether the object will be visible. Possible values are:

  Value Meaning
  TRUE The annotation object will be visible with default properties.
  FALSE The annotation object will not be visible.
phObject Address of the variable to be updated with the handle to the annotation object.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

(Document and Medical) Before calling this function, you must declare a variable of data type HANNOBJECT. Then, pass the address of the variable in the phObject parameter. This function will update the variable with the handle of the new annotation object.

You must use the L_AnnSet... functions to initialize the object after it is created.

You should not call this function during processing of WM_LTANNEVENT if wParam equals LTANNEVENT_REMOVE or LTANNEVENT_INSERT, or during the ANNENUMCALLBACK callback function

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

Win32, x64.

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help