diff --git a/samples/sample.rc b/samples/sample.rc index b214b99b23..8d8636a72d 100644 --- a/samples/sample.rc +++ b/samples/sample.rc @@ -25,6 +25,9 @@ sample ICON "sample.ico" // for more information) #define wxUSE_NO_MANIFEST 0 +// To get DPI change events, we need to opt in into per monitor DPI support. +#define wxUSE_DPI_AWARE_MANIFEST 2 + // this is not always needed but doesn't hurt (except making the executable // very slightly larger): this file contains the standard icons, cursors, ... #include "wx/msw/wx.rc" diff --git a/samples/toolbar/toolbar.rc b/samples/toolbar/toolbar.rc index 8eac324424..52bbc440c4 100644 --- a/samples/toolbar/toolbar.rc +++ b/samples/toolbar/toolbar.rc @@ -1,6 +1,3 @@ -// To get DPI change events, we need to opt in into per monitor DPI support. -#define wxUSE_DPI_AWARE_MANIFEST 2 - #include "../sample.rc" new RCDATA "bitmaps/new.png"