#include "ltwrappr.h"
HWND LBitmapWindow::CreateWnd(hWndParent, nID=0, dwStyle=WS_VISIBLE|L_BS_CENTER|L_BS_PROCESSKEYBOARD, x=0, y=0, nCx=200, nCy=200)
HWND hWndParent; |
handle of the parent window |
L_INT nID; |
the controls ID |
DWORD dwStyle; |
controls style |
L_INT x; |
x coordinate for the window |
L_INT y; |
y coordinate for the window |
L_INT nCx; |
width of the window |
L_INT nCy; |
height of the window |
Creates the bitmap window control using the specified parameters.
Parameter |
Description |
hWndParent |
Handle of the parent window. |
nID |
The controls ID. |
dwStyle |
The style of the window control. 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 |
X coordinate for the origin of the bitmap window. |
y |
Y coordinate for the origin of the bitmap window. |
nCx |
The width of the bitmap window. |
nCy |
The height of the bitmap window. |
!= NULL |
The function was successful and the returned value is the window handle for the created control. |
NULL |
An error occurred, and the window could not be created. |
This function causes the class object to create the control window using the specified parameters.
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.
Required DLLs and Libraries
LTDIS 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.
Functions: |
L_INT LBitmapWindow__CreateWndExample(HWND hWnd)
{
L_INT nRet;
// this will call the constructor and will initialize the bitmap window with the specified parameters.
HWND BitmapHwnd;
//initialize hParentWnd with the handle of the parent window
LBitmapWindow *myLBitmapWindow = new LBitmapWindow;
myLBitmapWindow->SetFileName(MAKE_IMAGE_PATH(TEXT("image1.cmp")));
nRet = myLBitmapWindow->Load();
if (nRet== SUCCESS)
{
BitmapHwnd = myLBitmapWindow->CreateWnd(hWnd,15);
if (BitmapHwnd == NULL)
return FAILURE;
}
else
return nRet;
delete myLBitmapWindow;
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