HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

SetPixelScaling

Selects whether caller-supplied pixel dimensions are interpreted as 96-DPI reference values.

C

void SftMask_SetPixelScaling(HWND hwndCtl, int mode);

C++

void CSftMask::SetPixelScaling(int mode);

Parameters

hwndCtl

The window handle of the masked edit control.

mode

The pixel scaling setting. One of the following values:

SFTMASK_PIXELSCALING_ASISCaller-supplied pixel dimensions (captionnWidth) are used verbatim in physical screen pixels. This is the default (preserves the behavior of earlier SftMask/DLL versions).
SFTMASK_PIXELSCALING_STRETCHCaller-supplied pixel dimensions are interpreted as 96-DPI reference values and scaled by currentDPI / 96 at use time. Storage and getters always return caller-reference units so serialized configurations stay portable.

Comments

The pixel scaling setting can also be set through the pixelScaling field of the SFTMASK_CONTROL structure. See Per-Monitor DPI and Scaling.

See Also GetPixelScaling | SetImageScaling | GetDPI | Per-Monitor DPI and Scaling


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.