SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftTree/NET 2.0 - Tree Control
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;
hwndCtl
The window handle of the masked edit control.
The return value is the current DPI - 96 at 100% scaling, 120 at 125%, 144 at 150%, 192 at 200%.
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
