UpdateMagGlassShape example for C++ Builder

   HRGN h_Rgn= NULL;

   LEADRasterView1->ScaleMode = 3;
   LEADRasterView1->RgnFrameType = 0;
   LEADRasterView1->StartMagGlass (100, 100, 400, RGB(255, 0, 0),
                                   RGB(128,128, 128), true, 1, false,
                                   CROSSHAIR_FINE, true, true);
   h_Rgn= CreateRoundRectRgn(0, 0, 100, 100, 25, 25);
   LEADRasterView1->UpdateMagGlassShape (MAGGLASS_SHAPE_HRGN, (long)h_Rgn);
   DeleteObject (h_Rgn);
   //.......some other work..............
   //.......some other work..............
   //Stop the MagGlass
   LEADRasterView1->StopMagGlass ();