MagGlassOwnerDraw event (ILEADRasterView)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

void MagGlassOwnerDraw (long hWnd, long hMemDC, long lXPos, long lYPos, long lMagGlassTop, long lMagGlassLeft, long lMagGlassBottom, long lMagGlassRight);

Overview

Refer to Customizing Magnifying Glass Painting

Remarks

Provides additional, user-defined Magnifying Glass painting.

If the EnableMagGlassDraw property is true, then after the StartMagGlass method is called, and the magnifying glass paints itself to the DC, but before the magnifying glass is displayed on the screen, the user can change what is in the DC, through this event. This allows the user to provide custom rendering of the magnifying glass, within the magnifying glass's display area. For example, this feature lets you render magnified annotations, which may be overlaid on the currently displayed image, or just simply override what is currently in the magnifying glass display area.

To stop the generation of the MagGlassOwnerDraw event, set the EnableMagGlassDraw property to VARIANT_FALSE.

See Also

Elements

AnnEnableMagGlass property, AnnMagGlass method, EnableMagGlassDraw property, StartMagGlass method, StopMagGlass method

Topics

Using the Magnifying Glass
Implementing Annotations
Raster Images: Displaying Images

Annotations: Displaying Annotations

 

Using the Zoom View