DestroyZoomView method (ILEADRasterView)
Overview |
Refer to Using the Zoom View |
Remarks
(Document/Medical only.) Destroys the specified Zoom View, and releases all resources associated with it.
When a zoomed view is no longer needed, call the DestroyZoomView method to stop the specified Zoom View procedure and to detach it from the RasterView Control.
You must call this method for each Zoom View you have created before destroying the window with which the Zoom Views are associated.
If you need to destroy all the zoomed views that are attached to a specified window, destroy them from the last Zoom View to the first Zoom View. For example, if you have 5 Zoom Views associated with the specified window you need to do the following:
In VB
Dim nCount As Integer
Dim i As Integer
If (LEADRasterView1.HasZoomView) Then
nCount = LEADRasterView1.ZoomViewsCount
For i = nCount - 1 To 0 Step -1
LEADRasterView1.DestroyZoomView i
Next i
End If
In MFC
int nCount;
if(m_RasterView.GetHasZoomView())
{
nCount = m_RasterView.GetZoomViewsCount();
for (int i = 0; i<nCount ;++i)
m_RasterView.DestroyZoomView(nCount-i-1);
}
See Also