From 4a7dc311530b6f90fe3a034ac67e1e4a1134b59c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 9 May 2021 22:25:48 +0200 Subject: [PATCH] Improve wxUSE_DPI_AWARE_MANIFEST description in high DPI overview Make it more clear that wx/msw/wx.rc must be included for this option to be taken into account. --- docs/doxygen/overviews/high_dpi.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/doxygen/overviews/high_dpi.md b/docs/doxygen/overviews/high_dpi.md index 9770a232d2..ede1848cf8 100644 --- a/docs/doxygen/overviews/high_dpi.md +++ b/docs/doxygen/overviews/high_dpi.md @@ -130,11 +130,13 @@ MSW --- The behaviour of the application when running on a high-DPI display depends on -the values in its [manifest][1]. If your application include `wx/msw/wx.rc` -from its resource file, you need to predefine `wxUSE_DPI_AWARE_MANIFEST` to -opt-in into [high DPI support][2]: define it as `1` for minimal DPI awareness and -`2` for full, per-monitor DPI awareness supported by Windows 10 version 1703 or -later. +the values in its [manifest][1]. You may either use your own manifest, in which +case you need to define the `dpiAware` (for compatibility with older OS +versions) and `dpiAwareness` (for proper per-monitor DPI support) in it, or +simply include `wx/msw/wx.rc` from your resource file to use the manifest +provided by wxWidgets and predefine `wxUSE_DPI_AWARE_MANIFEST` to opt-in into +[high DPI support][2]: define it as `1` for minimal DPI awareness and `2` for +full, per-monitor DPI awareness supported by Windows 10 version 1703 or later. [1]: https://docs.microsoft.com/en-us/windows/win32/sbscs/application-manifests [2]: https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows