HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

GetDPI

Returns the effective DPI of the monitor the masked edit control is currently displayed on.

C

int SftMask_GetDPI(HWND hwndCtl);

C++

int CSftMask::GetDPI() const;

Parameters

hwndCtl

The window handle of the masked edit control.

Returns

The return value is the current DPI - 96 at 100% scaling, 120 at 125%, 144 at 150%, 192 at 200%.

Comments

On a Per-Monitor v2 aware host, the value changes as the window moves between monitors with different scale factors, and the SFTMASKN_DPI_CHANGED notification is sent. On System-aware or Unaware hosts, the value is fixed for the process lifetime. See Per-Monitor DPI and Scaling.

See Also SetImageScaling | SetPixelScaling | Per-Monitor DPI and Scaling


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