LBitmapWindow::AddZoomView
#include "ltwrappr.h"
L_INT LBitmapWindow::AddZoomView(pZoomViewProps)
pZOOMVIEWPROPS pZoomViewProps; |
/* pointer to a ZOOMVIEWPROPS structure */ |
Creates a new Zoom View and associates it with the bitmap window control. This function is available in the Document/Medical Toolkits.
Parameter |
Description |
pZoomViewProps |
Pointer to the ZOOMVIEWPROPS structure that contains the Zoom View settings to be created for the class object. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Starts a Zoom View procedure by attaching a zoomed view to the bitmap window.
When the zoomed view is no longer needed, call the LBitmapWindow::DestroyZoomView function to stop the specified Zoom View procedure and to detach it from the window handle.
For more information on the Zoom View options, refer to the ZOOMVIEWPROPS structure.
Required DLLs and Libraries
LTZMV For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
LBitmapWindow::HasZoomView, LBitmapWindow::GetZoomViewProps, LBitmapWindow::UpdateZoomView, LBitmapWindow::DestroyZoomView, LBitmapWindow::GetZoomViewsCount, Class Members. |
Topics: |
|
|
Example
void CDemoView::OnAddZoomView()
{
ZOOMVIEWPROPS ZoomViewProps;
memset(&ZoomViewProps,0,sizeof(ZOOMVIEWPROPS));
ZoomViewProps.uStructSize = sizeof(ZOOMVIEWPROPS);
SetRect(&ZoomViewProps.rcSrc, 0, 0, 100*100, 100*100);
SetRect(&ZoomViewProps.rcDst, 100*100, 100*100, 200*100,
200*100);
ZoomViewProps.nZoom = 200;
ZoomViewProps.bCallouts = TRUE;
ZoomViewProps.bForceDst = FALSE;
ZoomViewProps.crCallout = RGB(255,0,0);
ZoomViewProps.nCalloutPenStyle = 1;
ZoomViewProps.crZoomViewBorder = RGB(0,255,0);
ZoomViewProps.uZoomViewBorderStyle = ZOOMVIEWBORDERSTYLE_3D;
ZoomViewProps.nZoomViewPenStyle = 1;
ZoomViewProps.crSrcBorder = RGB(0,0,255);
ZoomViewProps.uSrcBorderStyle = 2;
ZoomViewProps.nSrcPenStyle = 0;
ZoomViewProps.bEnabled = TRUE;
m_LAniWnd.AddZoomView(&ZoomViewProps);
m_LAniWnd.EnableHiliteZoomView(!m_LAniWnd.IsHiliteZoomViewEnabled());
m_LAniWnd.SetToolType (TOOL_ZOOMVIEW);
m_LAniWnd.EnableDoubleBuffer (TRUE);
}
void CDemoView::OnDestoyZoomView()
{
L_UINT uCount,i;
if(m_LAniWnd.HasZoomView ())
{
uCount = m_LAniWnd.GetZoomViewsCount ();
for(i=0; i < uCount;++i)
{
m_LAniWnd.DestroyZoomView (uCount-i-1);
}
}
}