HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

SetImageScaling

Selects whether the caller-supplied error images are scaled for the current monitor DPI.

C

void SftMask_SetImageScaling(HWND hwndCtl, int mode);

C++

void CSftMask::SetImageScaling(int mode);

Parameters

hwndCtl

The window handle of the masked edit control.

mode

The image scaling setting. One of the following values:

SFTMASK_IMAGESCALING_ASISThe error images (ImageInvalid, ImageEmpty, ImageRequired) are drawn at their native pixel size. This is the default (preserves the behavior of earlier SftMask/DLL versions).
SFTMASK_IMAGESCALING_STRETCHThe error images are scaled by currentDPI / 96 at draw time.

Comments

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

See Also GetImageScaling | SetPixelScaling | GetDPI | Per-Monitor DPI and Scaling


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