UpdateMagGlassShape example for C++ 5.0 and later

   HRGN hRgn=NULL;
   m_LEADRasterView1.SetScaleMode (3);
   m_LEADRasterView1.SetRgnFrameType (0);
   m_LEADRasterView1.StartMagGlass(100.0f, 100.0f, 400,
                                   RGB(255, 0, 0), RGB(128, 128, 128),
                                   TRUE, 1, FALSE, CROSSHAIR_FINE,
                                   TRUE, TRUE);
   hRgn = CreateRoundRectRgn(0, 0, 100, 100, 25, 25);
   m_LEADRasterView1.UpdateMagGlassShape (MAGGLASS_SHAPE_HRGN, (long)hRgn);
   DeleteObject(hRgn);
   //.......some other work..............
   //.......some other work..............
   //Stop the MagGlass
   m_LEADRasterView1.StopMagGlass();