Help Center

CWindow.ScaleXproperty

Scales an horizontal coordinate according the DPI setting.

WindowspropertyCWindow.incdocumented

Syntax

PROPERTY ScaleX (BYVAL cx AS SINGLE) AS SINGLE

Parameters

NameDescription
cxThe value of the horizontal coordinate, in pixels.

Description

Scales an horizontal coordinate according the DPI setting.

Remarks

A SINGLE datatype is used instead of a long to avoid rounding errors in the calculation.

Example

pWindow.ScaleX(cx)

Reference

  • Include file CWindow.inc
  • Defined in AfxNova/CWindow.inc:994
  • Documented in Windows/Windows GUI/CWindow Class.md
  • Topic: CWindow Class