dxSetProcessDpiAwareness(TdxProcessDpiAwareness) Method
Enables the specified DPI awareness mode for the current process.
Declaration
function dxSetProcessDpiAwareness(AValue: TdxProcessDpiAwareness): Boolean;
Parameters
Name | Type |
---|---|
AValue | TdxProcessDpiAwareness |
Returns
Type |
---|
Boolean |
Remarks
Add the dpiAware element to the application manifest and specify the element’s state corresponding to the required DPI awareness mode instead of calling the dxSetProcessDpiAwareness global function:
The dpiAware element state | Description | |
---|---|---|
The element is absent or contains “false” | The current process is DPI-unaware. | pdaUnaware |
The element contains “true” | The current process is system DPI-aware. | pdaSystemDpiAware |
Contains “true/pm” | The current process is:
| pdaPerMonitorDpiAware |
Contains “per monitor” | The current process is:
| pdaPerMonitorDpiAware |
The current process is per-monitor DPI-aware (v2) in Microsoft Windows® 10 since Creators Update (build 1703). | pdaPerMonitorDpiAwareV2 |
Refer to the DevExpress Manifest for Per-Monitor DPI-Aware VCL Applications and Enabling DPI Awareness in the Application Manifest topics for detailed information on adding DPI awareness to your application.