|
Previous Top Next |
Prototype: | (),Long |
Returns | Returns the value from GetDeviceCaps for LOGPIXELSX on the desktop window. |
This method uses the GetDeviceCaps api to determine the number of pixels per logical inch along the screen width. This can be used to determine the size of a control in inches or other units as seen on the screen. For example if the DPI is 96 then a control that is 96 pixels wide should be exactly 1 inch wide or 25.4mm.
Example:
ITW ITWindowsClass
Code
Message('Screen DPI: ' & ITW.GetScreenDPI())
See also: