Help Center

CRichEditCtx.GetScalingRatiomethod

Windowsmethoddocumented

Syntax

FUNCTION GetScalingRatio () AS SINGLE
Also documented as ScalingRatio — one description covers them all.

Description

Gets/sets the scaling ratio.

Remarks

The scaling ratio is used by the InsertImage and InsertObject methods to scale images according to the DPI settings of your computer. Its initial value is the scaling ratio used by its parent window, but you can change it with this property. Setting a value or 1 disables scaling.

Examples

(GET) PROPERTY ScalingRatio () AS SINGLE (SET) PROPERTY ScalingRatio (BYVAL Ratio AS SINGLE)

DIM ratio AS LONG = pRichEdit.ScalingRatio pRichEdit.ScalingRatio = ratio

DIM ratio AS LONG = pRichEdit.GetScalingRatio pRichEdit.SetScalingRatio(ratio)

Reference

  • Defined in AfxNova/CRichEditCtx.inc:679
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class