LAnnContainer::LAnnContainer

#include "ltwrappr.h"

L_VOID LAnnContainer::LAnnContainer(L_VOID)

L_VOID LAnnContainer::LAnnContainer(hContainer)

L_VOID LAnnContainer::LAnnContainer(hWnd, pRect, bVisible)

HANNOBJECT& hContainer;

/* handle of the associated annotation object */

HWND hWnd;

/* handle to the window */

pANNRECT pRect;

/* pointer to a structure */

L_BOOL bVisible;

/* flag that indicates whether the container will be visible */

Constructs and initializes the member variables of the LAnnContainer object. This function is available in the Document/Medical Toolkits.

Parameter

Description

hContainer

Handle of the associated annotation object.

hWnd

Handle to the window for the container.

pRect

Pointer to the LEADTOOLS ANNRECT structure that specifies the container. The ANNRECT structure is like a Windows RECT structure, except that it uses double-precision floating point values.

 

Coordinates of an object's rectangle are relative to its container object. The coordinates are interpreted using the container's scaling factors and offsets, which are described in Low-Level Coordinate System for Annotations.

bVisible

Flag that indicates whether the container will be visible or not. Possible values are:

 

Value

Meaning

 

TRUE

The container is visible (although transparent).

 

FALSE

The container is not visible.

Returns

None.

Comments

LAnnContainer::LAnnContainer() is the default constructor for the LAnnContainer class.

LAnnContainer::LAnnContainer(hWnd, pRect, bVisible) creates the associated Container annotation object with the specified bounding rectangle and window handle.

LAnnContainer::LAnnContainer(hContainer) attaches the passed handle to the created class object. The passed handle must be a LEAD annotation object of type ANNOBJECT_CONTAINER. The passed annotation object is invalidated.

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.

See Also

Functions:

LAnnContainer::~LAnnContainer, Class Members

Example

This is an example for LAnnContainer::LAnnContainer():

L_VOID TestConstructor()
{
   
// this will call the default constructor and destructor when it is out of scope
   LAnnContainer LeadAContainer
;

   
//...
}

This is an example for LAnnContainer::LAnnContainer(hWnd, pRect, bVisible):

L_VOID TestConstructor (HWND hWnd)
{
   
ANNRECT AnnRect ;

   
AnnRect.left = 10 ;
   
AnnRect.top = 10 ;
   
AnnRect.right = 60 ;
   
AnnRect.bottom = 60;

   
// this will call the default constructor and destructor when it is out of scope
   LAnnContainer LeadAContainer(hWnd,&AnnRect,TRUE)
;

   
//...

   
LeadAContainer.SetUserMode(ANNUSER_RUN);

   
//...
}

This is an example for LAnnContainer::LAnnContainer(hContainer):

L_VOID TestConstructor (HANNOBJECT& hContainer)
{
   
// this will call the default constructor and destructor when it is out of scope
   LAnnContainer LeadAContainer(hContainer)
;

   
//...
}