#include "ltwrappr.h"
HWND LVectorWindow::GetVectorWnd(L_VOID)
Gets the window handle of the class object's vector window.
The vector handle of the vector window.
This returns the m_hWnd data member.
Required DLLs and Libraries
Assumes pVectorWindow points to a valid LVectorWindow object. This example centers the LVectorWindow object in the parent window.
L_INT LVectorWindow__GetVectorWndExample(LVectorWindow *pVectorWindow)
{
L_INT nRet;
RECT parentRect, vectorRect, moveRect;
L_INT moveWidth, moveHeight;
HWND hWndParent = ::GetParent(pVectorWindow->GetVectorWnd());
if (hWndParent != NULL)
{
::GetClientRect(hWndParent, &parentRect);
nRet = pVectorWindow->GetVectorRect(&vectorRect);
if(nRet != SUCCESS)
return nRet;
moveWidth = vectorRect.right - vectorRect.left;
moveHeight = vectorRect.bottom - vectorRect.top;
moveRect.left = ((parentRect.right - parentRect.left) - moveWidth)/2;
moveRect.top = ((parentRect.bottom - parentRect.top) - moveHeight)/2;
moveRect.right = moveRect.left + moveWidth;
moveRect.bottom = moveRect.top + moveHeight;
nRet = pVectorWindow->Move(moveRect, TRUE);
if(nRet != SUCCESS)
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