Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxGetDesktopDPI Method

Returns the current system or screen DPI value.

#Declaration

Delphi
function dxGetDesktopDPI: Integer;

#Returns

Type
Integer

#Remarks

This global function returns the value stored in the HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics\AppliedDPI registry key. If the Windows registry contains no such record, the dxGetDesktopDPI function calls the dxGetSystemDPI function to retrieve the current screen device’s DPI.

See Also