MagnifyGlassActionSample Example for Visual C++ 5.0
void MagnifyGlassActionSample(CLEADRasterContainerViewer * pLEADContainerViewer)
{
TRY
{
pLEADContainerViewer->SetEnableMethodErrors (TRUE);
// Activate Magnify Glass action
if(!pLEADContainerViewer->MagnifyGlassAction ().GetUse ())
pLEADContainerViewer->MagnifyGlassAction().ActivateAction (TRUE, 0);
// Select left mouse button to control Magnify Glass parameters.
pLEADContainerViewer->MagnifyGlassAction().SetMouseButtonAction (CONVIEW_MOUSE_BUTTON_LEFT);
// Specify Magnifiy parameters.
pLEADContainerViewer->MagnifyGlassAction().SetAppearance3D (TRUE);
pLEADContainerViewer->MagnifyGlassAction().SetBorderSize (1);
pLEADContainerViewer->MagnifyGlassAction().SetCrossHair (5);
pLEADContainerViewer->MagnifyGlassAction().SetEllipse (TRUE);
pLEADContainerViewer->MagnifyGlassAction().SetHeight (100);
pLEADContainerViewer->MagnifyGlassAction().SetWidth (200);
pLEADContainerViewer->MagnifyGlassAction().SetZoomFactor (500);
pLEADContainerViewer->MagnifyGlassAction().SetPenColor (RGB(0,0,0));
// Set Magnify Glass parameters.
pLEADContainerViewer->MagnifyGlassAction().SetAction ();
}
CATCH_ALL(e)
{
e->ReportError();
}
END_CATCH_ALL
}