Help Center

CRichEdit.SetZoommethod

Sets the zoom ratio anywhere between 1/64 and 64.

Windowsmethoddocumented

Syntax

FUNCTION SetZoom (BYVAL hRichEdit AS HWND, BYVAL zNum AS DWORD, BYVAL zDen AS DWORD) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
zNumNumerator of the zoom ratio.
zDenDenominator of the zoom ratio. These parameters can have the following values.

Return value

If the new zoom setting is accepted, the return value is TRUE.

If the new zoom setting is not accepted, the return value is FALSE.

Description

Sets the zoom ratio for a multiline edit control or a rich edit control. The ratio must be a value between 1/64 and 64. The edit control needs to have the ES_EX_ZOOMABLE extended style set, for this message to have an effect, see Edit Control Extended Styles.

Reference

  • Defined in AfxNova/CRichEdit.inc:1303
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class