LEADTOOLS Raster Imaging C++ Class Library Help > Classes and Member Functions > LAnnContainer > LAnnContainer Member Functions > LAnnContainer::LAnnContainer |
#include "ltwrappr.h"
LAnnContainer::LAnnContainer()
LAnnContainer::LAnnContainer(hContainer)
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.
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. |
Win32, x64.
See Also
Functions: |
Example
This is an example for LAnnContainer::LAnnContainer():
L_INT LAnnContainer_LAnnContainerFisrtExample() { // this will call the default constructor and destructor when it is out of scope LAnnContainer LeadAContainer ; //... return SUCCESS; } //This is an example for LAnnContainer::LAnnContainer(hWnd, pRect, bVisible): L_INT LAnnContainer_LAnnContainerSecondExample(HWND hWnd) { L_INT nRet; 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) ; //... nRet = LeadAContainer.SetUserMode(ANNUSER_RUN); if(nRet != SUCCESS) return nRet; //... return SUCCESS; } //This is an example for LAnnContainer::LAnnContainer(hContainer): L_INT LAnnContainerThirdExample(HANNOBJECT& hContainer) { // this will call the default constructor and destructor when it is out of scope LAnnContainer LeadAContainer(hContainer) ; //... return SUCCESS; }