Creates the annotation bitmap window control using the specified parameters.
#include "ltwrappr.h"
HWND LAnnotationWindow::CreateWnd(hWndParent, nID=0, dwStyle=WS_VISIBLE|L_BS_CENTER|L_BS_PROCESSKEYBOARD, x=0, y=0, nCX=200, nCY=200)
Handle to the parent window.
The control's id.
The control's style. Apply any combination of window styles and LEAD window styles. For more information on Windows styles, refer to your compilers help file. For more information on LEAD window styles, refer to Bitmap Window LEAD specific styles.
X coordinate of the origin of the annotation bitmap window.
Y coordinate of the origin of the annotation bitmap window.
The width of the annotation bitmap window.
The height of the annotation bitmap window.
The window handle of the created window if the function was successful, otherwise NULL.
This function causes the class object to create the control window using the specified parameters.
It will also initialize the annotation automation engine.
This will fill in the m_hWnd data member with the handle to the new window.
If you call this function for a class object that already has a created window, the function will simply return m_hWnd.
Win32, x64.
L_INT LAnnotationWindow_CreateWndExample(HWND hParentWnd)
{
// this will call the constructor and will initialize the bitmap window with the specified parameters.
LAnnotationWindow MyLAnnotationWindow;
HWND hWnd=MyLAnnotationWindow.CreateWnd(hParentWnd,15,WS_VISIBLE,0,0,300,400);
if(hWnd!=NULL)
{
/*the function was successful */
return SUCCESS;
}
else
{
/* there is an error */
return FAILURE;
}
}
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