New MIAMEX function returns information about the effective or simulated resolution of the workstation monitor(s) in DPI (dots per inch). Applies only to A-Shell/Windows and ATE
xcall MIAMEX, MX_GETDPI, sysdpi {,ctlid, ctldpi}
Parameters
sysdpi (num) [out]
system DPI (primary monitor).
ctlid (str/num) [in]
optional control ID (name or number) of control for which to return the control's DPI. This will only differ from sysdpi in a multi-monitor system where the control is on one of the secondary monitors.
ctldpi (num) [out]
DPI of the monitor on which the control specified by ctlid is located.
Comments
If you don't specify the -dpm command line switch when launching A-Shell/Windows or ATE, the return value will probably be a value simulated by Windows (typically 96) rather than the real resolution of the monitor. The -dpm switch disables the Windows standard resolution simulation, giving access to the actual monitor resolution. See the documentation on the -dpm switch for more details.