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);
hwndCtl
The window handle of the masked edit control.
mode
The image scaling setting. One of the following values:
| SFTMASK_IMAGESCALING_ASIS | The 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_STRETCH | The error images are scaled by currentDPI / 96 at draw time. |
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