AfxGetMonitorVerticalScalingfunction
Returns the vertical scaling of the monitor that the window is currently displayed on.
Syntax
FUNCTION AfxGetMonitorVerticalScaling (BYVAL hwnd AS HWND = NULL) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hwnd | Optional. A handle to the window. If NULL, the desktop window handle will be used. |
Description
Returns the vertical scaling of the monitor that the window is currently displayed on.
Remarks
If the application to which the window belongs is not DPI aware, a computer using 192 DPI, will return an scaling ratio of 2.
Reference
- Include file
AfxWin.inc - Defined in AfxNova/AfxWin.inc:1769
- Documented in Windows/Windows Procedures.md
- Topic: Windows Procedures