Compartir a través de


DpiAwarenessContext Enum

Definition

Identifies the DPI awareness context for a window.

public enum class DpiAwarenessContext
public enum DpiAwarenessContext
type DpiAwarenessContext = 
Public Enum DpiAwarenessContext
Inheritance
DpiAwarenessContext

Fields

Name Value Description
PerMonitorAwareV2 -4

An advancement over the original Per-Monitor DPI awareness mode, which enables applications to access new DPI-related scaling behaviors on a per top-level window basis. This mode should almost always be preferred over PerMonitorAware.

PerMonitorAware -3

This window checks for the DPI when it is created and adjusts the scale factor whenever the DPI changes. These processes are not automatically scaled by the system.

SystemAware -2

This window does not scale for DPI changes. It will query for the DPI once and use that value for the lifetime of the process. If the DPI changes, the process will not adjust to the new DPI value. It will be automatically scaled up or down by the system when the DPI changes from the system value.

Unaware -1

This window does not scale for DPI changes and is always assumed to have a scale factor of 100% (96 DPI). It will be automatically scaled by the system on any other DPI setting.

Remarks

The values for this enum come from: https://docs.microsoft.com/en-us/windows/desktop/hidpi/dpi-awareness-context

Applies to