AfxGetMonitorLogicalWidthfunction
Returns the logical width of the monitor that the window is currently displayed on.
Syntax
FUNCTION AfxGetMonitorLogicalWidth (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 logical width of the monitor that the window is currently displayed on.
Remarks
If the application to which the window belongs is not DPI aware, a monitor with a width resolution of 1920 pixels in a computer using 192 DPI, will return 960 pixels.
Reference
- Include file
AfxWin.inc - Defined in AfxNova/AfxWin.inc:1706
- Documented in Windows/Windows Procedures.md
- Topic: Windows Procedures