RMC_Zoom function.
Enables/Disables zooming

Syntax
nResult (LONG) = RMC_Zoom(
ByVal nCtrlId (LONG),
ByVal nMode (LONG),
ByVal nColor (LONG),
ByVal nLineColor (LONG),
ByVal nTransparency (LONG)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control.
nMode (LONG)
One of the following values:
  • 0 or constant RMC_ZOOM_DISABLE: zooming is disabled.
  • 1 or constant RMC_ZOOM_EXTERNAL: redrawing of the zoomed area will happen in a seperate chart control and must be handled by aourself.
  • 2 or constant RMC_ZOOM_INTERNAL: redrawing of the zoomed area will happen in the same chart control and will be handled by the control.
nColor (LONG)
Color of the zoom rectangle as a color constant or as a RGB value. If omitted or 0: no color is used, the rectangle will only be outlined.
nLineColor (LONG)
Color of the outeline of the zoom rectangle as a color constant or as a RGB value. If omitted or 0: if parameter nColor is omitted or 0, Blue, otherwise no outline gets painted.
nTransparency (LONG)
Level of transparency for the rectangle. Only valid, if nColor is set. Valid values from 1 (totally transparent) to 255 (opaque, not really recommended). If omitted or 0: 100.
Return value
0
No error, function succeeded.
RMC_ERROR_CTRLID
Wrong control ID (0 or no chart with this control ID was found).
Remarks
You may call this function at any point in your source code, even when the chart is already painted, to enable/disable zooming. Note: dependending on the DC you use to paint your chart (the control's DC or your own) and on the mode of zooming you choose (internal or external), some work will be left for you at runtime. Please read Zoom and Magnifier for more informations.