virtual L_INT LAnnContainer::Create(hWnd, pRect, bVisible=FALSE)
Creates and initializes an annotation object that is a container.
Handle to the window for the container.
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.
Flag that indicates whether the container will be visible. Possible values are:
Value | Meaning |
---|---|
TRUE | The container is visible. |
FALSE | The container is not visible. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
You should not call this function during processing of WM_LTANNEVENT if wParam equals LTANNEVENT_REMOVE or LTANNEVENT_INSERT or during the LAnnContainer::EnumerateCallBack virtual function!
Win32, x64.
L_INT LAnnContainer_CreateExample(HWND hWnd,LAnnLine& LeadAnnLine)
{
L_INT nRet;
LAnnContainer LeadAContainer;
ANNRECT AnnRect ;
AnnRect.left = 30 ;
AnnRect.top = 20 ;
AnnRect.right = 100 ;
AnnRect.bottom = 100 ;
nRet = LeadAContainer.Create(hWnd,&AnnRect,TRUE) ;
if(nRet != SUCCESS)
return nRet;
nRet = LeadAContainer.Insert(LeadAnnLine,FALSE) ;
if(nRet != SUCCESS)
return nRet;
nRet = LeadAContainer.CopyFromClipboard(hWnd);
if (nRet == SUCCESS)
MessageBox(hWnd,TEXT("The clipboard has annotations ..."), TEXT("Clipboard"),MB_OK) ;
else
return nRet;
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document